diff options
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -25,6 +25,7 @@ set hlsearch set cinoptions+=:0,N-s,E-s,(s,m1,t0 set completeopt=menu,menuone,noselect set autoread +set spell filetype plugin on filetype indent on @@ -36,12 +37,11 @@ let fuzzbox_mappings = 0 let g:apc_enable_ft = {'c':1} let g:netrw_list_hide = '\~$' -xmap ga <Plug>(EasyAlign) -nmap ga <Plug>(EasyAlign) -nmap <leader>f :FuzzyFilesRoot<cr> -nmap <leader>t :! ctags -R .<cr><cr> +nmap <silent> <leader>f :FuzzyFilesRoot<cr> +nmap <silent> <leader>t :! ctags -R .<cr><cr> +nmap <silent> <leader>s :Alternate<cr> -nnoremap <C-l> :noh<cr> +nnoremap <silent> <C-l> :noh<cr> nnoremap <C-u> <C-u>zz nnoremap <C-d> <C-d>zz nnoremap gd <C-]> @@ -53,9 +53,16 @@ au FileType lua set shiftwidth=2 colors mooncheese hi clear Error +" Saves the last line I was on in a file +autocmd BufReadPost * + \ if line("'\"") > 0 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + call plug#begin() Plug 'vim-fuzzbox/fuzzbox.vim' Plug 'tpope/vim-fugitive' +Plug 'ton/vim-alternate' call plug#end() |
