Last active
May 7, 2018 07:50
-
-
Save kuddai/2da5fb9498dbca62161d91ee151f8ce5 to your computer and use it in GitHub Desktop.
standard .vimrc with very little amount of key changes
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
" change capslock to esc on Ubuntu | |
" xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' | |
" on macOSX it is easy to do via settings | |
" on Windows who knows (never had to) | |
set nocompatible " We're running Vim, not Vi! | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
" plugins using plug | |
call plug#begin('~/.vim/plugged') | |
Plug 'mileszs/ack.vim' | |
Plug 'dracula/vim',{'as':'dracula'} | |
Plug 'sickill/vim-monokai' | |
Plug 'vim-airline/vim-airline' " bottom status line | |
Plug 'wincent/command-t' " File search, via ',' + 't' | |
Plug 'scrooloose/nerdtree' | |
Plug 'tpope/vim-fugitive' " git staff | |
Plug 'tpope/vim-surround' | |
Plug 'valloric/youcompleteme' "auto complete, requires building | |
Plug 'pangloss/vim-javascript' " javascript/react/jsx | |
Plug 'mxw/vim-jsx' | |
" Initialize plugin system | |
call plug#end() | |
syntax enable " Enable syntax highlighting | |
" yeah stupid double declaration | |
" but without it vim in docker won't apply dracula theme right a way | |
" (some bug or something - no time for this) | |
colorscheme monokai | |
colorscheme dracula | |
"display line numbers on the left | |
set number | |
"tabs | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
" to extend vim text wrapping size | |
set tw=190 | |
" start searching as you start typing | |
set incsearch | |
" set highlighting of all search matches | |
set hlsearch | |
" enable showing cursor position in the right bottom corner | |
set ruler | |
" Blink cursor on error instead of beeping (grr) | |
set visualbell | |
" Encoding | |
set encoding=utf-8 | |
" Status bar | |
set laststatus=2 | |
" for command-t plugin, change leader key, so ',' + 't' leads to file search | |
let mapleader="," | |
" for transparent background | |
hi Normal ctermbg=none | |
highlight NonText ctermbg=none | |
" map NERDTree to ctrl+n | |
map <silent> <C-n> :NERDTreeToggle<CR> | |
set foldmethod=syntax | |
set foldnestmax=10 | |
set nofoldenable | |
set foldlevel=2 | |
let g:jsx_ext_required = 0 " Allow JSX in normal JS files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment