Guest User

.vimrc

a guest
Oct 4th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.11 KB | None | 0 0
  1. set nocompatible
  2. set number
  3. "set relativenumber
  4. execute pathogen#infect()
  5. filetype plugin indent on
  6. syntax on
  7. set laststatus=2 t_Co=256 tabstop=2 shiftwidth=2 expandtab background=dark
  8. set mouse=a cursorline guitablabel=\[%N\]\ %t\ %M nobackup nowritebackup noswapfile expandtab noshowmode
  9. colorscheme atom-dark-256
  10.  
  11. " don't keep inserting comments:
  12. autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
  13.  
  14. " airline
  15. let g:airline#extensions#tabline#enabled = 1
  16. let g:airline_powerline_fonts = 1
  17.  
  18. " syntastic
  19. let g:syntastic_always_populate_loc_list = 1
  20. let g:syntastic_auto_loc_list = 1
  21. let g:syntastic_check_on_open = 1
  22. let g:syntastic_check_on_wq = 0
  23.  
  24.  
  25. let g:NERDTreeWinSize = 40
  26. silent! map <F2> :NERDTreeToggle<CR>
  27. silent! map <F3> :NERDTreeFind<CR>
  28.  
  29. " ctags
  30. set tags=tags;/
  31.  
  32. " fzf
  33. let g:fzf_command_prefix = 'Fzf'
  34. nnoremap <leader>v :FzfFiles<cr>
  35. nnoremap <leader>u :FzfTags<cr>
  36. nnoremap <leader>j :call fzf#vim#tags("'".expand('<cword>'))<cr>
  37.  
  38. "Hard mode
  39. autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
  40. nnoremap <leader>h <Esc>:call ToggleHardMode()<CR>
Add Comment
Please, Sign In to add comment