Guest User

Untitled

a guest
Mar 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. " Specify a directory for plugins
  2. " - For Neovim: ~/.local/share/nvim/plugged
  3. " - Avoid using standard Vim directory names like 'plugin'
  4. call plug#begin('~/.vim/plugged')
  5.  
  6. " Make sure you use single quotes
  7.  
  8. Plug 'vim-scripts/FencView.vim'
  9. Plug 'tomtom/tcomment_vim'
  10. Plug 'vim-scripts/gtags.vim'
  11.  
  12. Plug 'tpope/vim-fugitive'
  13. Plug 'airblade/vim-gitgutter'
  14.  
  15. Plug 'MarcWeber/vim-addon-mw-utils'
  16. Plug 'tomtom/tlib_vim'
  17. Plug 'garbas/vim-snipmate'
  18.  
  19. " Initialize plugin system
  20. call plug#end()
  21.  
  22. set nocompatible
  23. set nowrap
  24.  
  25. " set colorcolumn=80
  26.  
  27. set ignorecase
  28. set smartcase
  29. set hlsearch
  30.  
  31.  
  32. " disable sound errors
  33. set noerrorbells
  34. set novisualbell
  35. set t_vb=
  36. set tm=500
  37.  
  38.  
  39. " move to the other split
  40. map <c-j> <c-w>j
  41. map <c-l> <c-w>l
  42. map <c-k> <c-w>k
  43. map <c-h> <c-w>h
  44.  
  45.  
  46. " go to the previous/next tab
  47. map <F9> gT
  48. map <F10> gt
  49.  
  50.  
  51. " Bash like keys for the command line
  52. cnoremap <C-A> <Home>
  53. cnoremap <C-E> <End>
  54. cnoremap <C-K> <C-U>
  55.  
  56.  
  57. " set leader to ,
  58. let mapleader=","
  59. let g:mapleader=","
  60.  
  61.  
  62. " turn off search highlighting
  63. nmap <leader>/ :nohl<CR>
  64.  
  65.  
  66. " toggle paste mode
  67. nmap <leader>p :set paste!<BAR>set paste?<CR>
  68.  
  69.  
  70. " allow multiple indentation/deindentation in visual mode
  71. vnoremap < <gv
  72. vnoremap > >gv
  73.  
  74.  
  75. " change working directory to that of the current file
  76. cmap cd. lcd %:p:h
  77.  
  78. imap <c-v> <ESC>"+pA
  79. vnoremap <C-C> "+y
  80.  
  81.  
  82. " tab settings
  83. au BufNewFile,BufReadPost *.html,*js,*.css setl shiftwidth=4 expandtab softtabstop=4
  84.  
  85.  
  86. map <F3> :GtagsCursor<CR>
  87.  
  88.  
  89. " restore cursor to file position in previous editing session
  90. set viminfo='10,\"100,:20,%,n~/.viminfo
  91. au BufReadPost * if line("'\"") > 0|if line("'\"") <=line("$")|exe("norm '\"")|else|exe "norm$"|endif|endif
  92.  
  93.  
  94. " clearfix
  95. map <c-n> :cn<CR>
  96. map <c-p> :cp<CR>
Add Comment
Please, Sign In to add comment