Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. filetype plugin indent on
  2. syntax on
  3. set encoding=utf-8
  4.  
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7.  
  8. Plugin 'gmarik/Vundle.vim'
  9. Plugin 'altercation/vim-colors-solarized'
  10. Plugin 'dhruvasagar/vim-table-mode'
  11. Plugin 'Xolox/vim-notes'
  12. Plugin 'xolox/vim-misc'
  13. Plugin 'scrooloose/nerdtree'
  14. Plugin 'scrooloose/syntastic'
  15. Plugin 'pangloss/vim-javascript'
  16. Plugin 'bling/vim-airline'
  17. Plugin 'Valloric/YouCompleteMe'
  18. Plugin 'jiangmiao/auto-pairs'
  19. Plugin 'christoomey/vim-tmux-navigator'
  20. Plugin 'easymotion/vim-easymotion'
  21.  
  22. call vundle#end()
  23.  
  24. filetype plugin indent on
  25.  
  26. " Mappings
  27. inoremap jk <ESC>
  28. let mapleader = "\<Space>"
  29. :imap <D-v> ^O:set paste<Enter>^R+^O:set nopaste<Enter>
  30.  
  31. " Text settings
  32. set nowrap
  33. set shiftwidth=2
  34. set tabstop=2
  35. set backspace=indent,eol,start
  36. set number
  37. set autoindent
  38. set copyindent
  39. set shiftround
  40. set showmatch
  41. set ignorecase
  42. set smartcase
  43. set smarttab
  44. set expandtab
  45. set hlsearch
  46. set incsearch
  47.  
  48. " Get rid of backup files
  49. set nobackup
  50. set noswapfile
  51.  
  52. " Syntastic settings
  53. set statusline+=%#warningmsg#
  54. set statusline+=%{SyntasticStatuslineFlag()}
  55. set statusline+=%*
  56.  
  57. let g:syntastic_always_populate_loc_list = 1
  58. "let g:syntastic_auto_loc_list = 1
  59. "let g:syntastic_check_on_open = 1
  60. "let g:syntastic_check_on_wq = 0
  61.  
  62. let g:syntastic_javascript_checkers = ['eslint']
  63.  
  64. " Syntastic Debugging
  65. " let g:syntastic_debug = 3
  66.  
  67. " Solarized vim settings
  68. syntax enable
  69. set background=dark
  70. let g:solarized_visibility = "high"
  71. let g:solarized_contrast = "high"
  72. let g:solarized_termcolors=256
  73. colorscheme solarized
  74.  
  75. " NERDTree settings
  76. map <C-n> :NERDTreeToggle<CR> " Map ctrl-n to NERDTree
  77.  
  78. " Airline settings
  79. let g:airline_powerline_fonts = 1
  80.  
  81. " Autopairs settings
  82. "let g:AutoPairsFlyMode = 1
  83.  
  84. " Vim-tmux-navigator settings
  85. "let g:tmux_navigator_no_mappings = 1
  86. "nnoremap <silent> {c-h} :TmuxNavigateLeft<cr>
  87. "nnoremap <silent> {c-j} :TmuxNavigateDown<cr>
  88. "nnoremap <silent> {c-k} :TmuxNavigateUp<cr>
  89. "nnoremap <silent> {c-l} :TmuxNavigateRight<cr>
  90. "nnoremap <silent> {c-\\} :TmuxNavigatePrevious<cr>
  91.  
  92. " Vim window settings
  93. nmap <silent> <A-Up> :wincmd k<CR>
  94. nmap <silent> <A-Down> :wincmd j<CR>
  95. nmap <silent> <A-Left> :wincmd h<CR>
  96. nmap <silent> <A-Right> :wincmd l<CR>
  97. set splitbelow
  98. set splitright
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement