srctree

Gregory Mullen parent e0311afd a3272d05
vim stuff

.config/nvim/init.vim added: 12, removed: 10, total 2
@@ -43,12 +43,6 @@ set showmatch " show matching
set ignorecase " case insensitive
set hlsearch " highlight search
set incsearch " incremental search
"set tabstop=4 " number of columns occupied by a tab
"set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
"set expandtab " converts tabs to white space
"set shiftwidth=4 " width for autoindents
"set autoindent " indent a new line the same amount as the line just typed
"set smartindent
set number " add line numbers
set relativenumber
set cursorline
 
.config/nvim/move_lines.vim added: 12, removed: 10, total 2
@@ -25,8 +25,16 @@ function! s:swap_down()
exec n + 1
endfunction
 
" Move lines
noremap <silent> <c-s-up> :call <SID>swap_up()<CR>
noremap <silent> <c-s-down> :call <SID>swap_down()<CR>
"vnoremap <silent> <c-s-up> :call <SID>swap_up()<CR>
"vnoremap <silent> <c-s-down> :call <SID>swap_down()<CR>
 
inoremap <silent> <c-s-up> <C-O>:call <SID>swap_up()<CR>
inoremap <silent> <c-s-down> <C-O>:call <SID>swap_down()<CR>
 
vnoremap <silent> <c-s-up> :call <SID>swap_up()<CR>
vnoremap <silent> <c-s-down> :call <SID>swap_down()<CR>
 
" Duplicate line
"nnoremap <c-s-n> yyP
"inoremap <c-s-n> <C-O>yy<C-O>P<End>