Last active
May 4, 2018 12:52
-
-
Save peregrinogris/2fa8d0bb173bc4545996 to your computer and use it in GitHub Desktop.
Vim Config Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set guioptions-=r | |
set guioptions-=L | |
set guicursor=a:blinkon0 | |
set guioptions=egmrt | |
hi ColorColumn guibg=#3E3D32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
set number | |
set ts=2 | |
set sw=2 | |
set ls=2 | |
set expandtab | |
set ai | |
set mouse=a | |
set noswapfile | |
set nobackup | |
set nowrap | |
set t_Co=256 | |
set termguicolors | |
"remove beeping | |
set noeb vb t_vb= | |
au GUIEnter * set vb t_vb= | |
"colors | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=darkred guibg=darkred | |
colorscheme molokai | |
"font | |
"set guifont=Inconsolata-DZ:h12 | |
let g:airline_powerline_fonts=1 | |
set guifont=Inconsolata-DZ\ for\ Powerline:h12 | |
"Vim Airline settings | |
set laststatus=2 | |
set noshowmode | |
set timeoutlen=50 | |
"highlight whitespace | |
match ExtraWhitespace /\s\+\%#\@<!$/ | |
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
au InsertLeave * match ExtraWhitespace /\s\+$/ | |
set cursorline | |
set cc=80 | |
"match extra highlight modes | |
filetype plugin on | |
"file ignores | |
set wildignore=*.swp,*.bak,*.pyc | |
"NERDTree | |
let NERDTreeIgnore=['\.pyc$', '\~$', 'env[[dir]],node_modules[[dir]]'] | |
"CommandT | |
let g:CommandTWildIgnore=&wildignore . ",**/env/*,**/node_modules/*" | |
let g:CommandTMaxHeight=10 | |
let g:CommandTMatchWindowAtTop=1 | |
"RainbowParentheses | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
let g:rbpt_colorpairs = [ | |
\ ['brown', 'RoyalBlue3'], | |
\ ['Darkblue', 'SeaGreen3'], | |
\ ['darkgray', 'DarkOrchid3'], | |
\ ['darkgreen', 'firebrick3'], | |
\ ['darkcyan', 'RoyalBlue3'], | |
\ ['darkred', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['brown', 'firebrick3'], | |
\ ['gray', 'RoyalBlue3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['Darkblue', 'firebrick3'], | |
\ ['darkgreen', 'RoyalBlue3'], | |
\ ['darkcyan', 'SeaGreen3'], | |
\ ['darkred', 'DarkOrchid3'], | |
\ ['red', 'firebrick3'], | |
\ ] | |
let g:CommandTWildIgnore=&wildignore . ",**/env/*,**/node_modules/*" | |
"per-project settings | |
"autocmd BufNewFile,BufRead <dir>/* set nowrap ts=4 sw=4 ls=4 | |
"Keybindings | |
" NERDTree | |
nmap <F9> :NERDTreeToggle<CR> | |
imap <F9> <C-o>:NERDTreeToggle<CR> | |
" Move between splits <ctrl>+h/j/k/l | |
map <C-J> <C-W>j | |
map <C-K> <C-W>k | |
map <C-H> <C-W>h | |
map <C-L> <C-W>l | |
" Use CTRL-S for saving, also in Insert mode | |
noremap <C-a> :update<CR> | |
vnoremap <C-a> <C-C>:update<CR> | |
inoremap <C-a> <C-O>:update<CR> | |
" make esc do nothing | |
"inoremap <Esc> <Nop> | |
" make §§ do esc | |
inoremap §§ <Esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Molokai:
Install Pathogen:
Then install these plugins:
Optional: