Last active
September 21, 2017 02:12
-
-
Save pspeter3/6511802 to your computer and use it in GitHub Desktop.
VIM settings
This file contains hidden or 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
mkdir ~/.vim | |
curl -Sso ~/.vimrc https://gist.github.com/pspeter3/6511802/raw/f62511c31f70dd6f90eb09ab2dc87d43a265809a/settings.vim | |
mkdir -p ~/.vim/colors | |
curl -Sso ~/.vim/colors/Tomorrow-Night.vim https://raw.github.com/chriskempson/tomorrow-theme/master/vim/colors/Tomorrow-Night.vim | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
cd ~/.vim/bundle | |
git clone [email protected]:kchmck/vim-coffee-script.git | |
git clone [email protected]:derekwyatt/vim-scala.git | |
git clone [email protected]:elzr/vim-json.git |
This file contains hidden or 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Pathogen | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
execute pathogen#infect() | |
"Always show current position | |
set ruler | |
" Ignore case when searching | |
set ignorecase | |
" When searching try to be smart about cases | |
set smartcase | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions turn magic on | |
set magic | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" Show line numbers | |
set number | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Colors and Fonts | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Enable syntax highlighting | |
syntax enable | |
colorscheme base16-ocean | |
set background=dark | |
" Set utf8 as standard encoding and en_US as the standard language | |
set encoding=utf8 | |
" Use Unix as the standard file type | |
set ffs=unix,dos,mac | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Files, backups and undo | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Turn backup off, since most stuff is in SVN, git et.c anyway... | |
set nobackup | |
set nowb | |
set noswapfile | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Text, tab and indent related | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabs ;) | |
set smarttab | |
" 1 tab == 4 spaces | |
set shiftwidth=2 | |
set tabstop=2 | |
set ai "Auto indent | |
set si "Smart indent | |
set wrap "Wrap lines | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Git | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Prevent wrapping | |
autocmd Filetype gitcommit setlocal spell textwidth=72 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment