vimrc

Download vimrc

If you can't read please download the document

Upload: jura

Post on 26-Sep-2015

5 views

Category:

Documents


1 download

DESCRIPTION

Vim configurations file example.

TRANSCRIPT

""" General configurationsset nocompatibleset t_Co=256filetype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" This is the Vundle package, which can be found on GitHub." For GitHub repos, you specify plugins using the" 'user/repository' format.Plugin 'gmarik/Vundle.vim'" To get plugins from Vim Scripts, you can reference the plugin" by name as it appears on the site," e.g. Plugin 'Buffergator'""" My PluginsPlugin 'nanotech/jellybeans.vim' " Colorscheme.Plugin 'altercation/vim-colors-solarized' " Colorscheme.Plugin 'tpope/vim-vividchalk' " Colorscheme." Syntax and PL related stuff" Plugin 'scrooloose/syntastic' " Syntax checker.Plugin 'jelera/vim-javascript-syntax' " Enhanced JavaScript syntax.Plugin 'mattn/emmet-vim.git' " HTML and CSS speed coding.Plugin 'othree/html5-syntax.vim' " HTML5 syntax." Plugin 'adimit/prolog.vim' " Prolog syntax.Plugin 'andreimaxim/vim-io' " Io syntax highlighter.Plugin 'Jinja' " Flask template engine syntax.Plugin 'idris-hackers/idris-vim' " Idris syntax highlighting.Plugin 'derekelkins/agda-vim' " Agda syntax highlighting." Erlang pluginsPlugin 'jimenezrick/vimerl' " Indenting, autocomplete and more for Erlang.Plugin 'elixir-lang/vim-elixir' " Elixir support for vim.Plugin 'kien/ctrlp.vim' " Fuzzy search for files.Plugin 'scrooloose/nerdtree' " Enables tree like view of your filesystem." Plugin 'sjl/gundo.vim' " Visualizes the undo tree.Plugin 'mikewest/vimroom' " Makes for better writing experience (V).Plugin 'tpope/vim-commentary' " You can comment stuff out with this (gcc)." Plugin 'tpope/vim-endwise' " Automatic ending of structures (only for few languages)." Plugin 'tpope/vim-surround' " Easy surrounds and so on.Plugin 'Lokaltog/vim-easymotion' " Adds additional simple motions.call vundle#end() syntax enable " Enables syntax highlighting.filetype plugin indent on" Colorscheme configurations" set background=light" let g:solarized_termcolors=256" colorscheme solarizedcolorscheme jellybeans" colorscheme vividchalkset number " Shows line numbers.set cursorline " Highlights current line.set showmatch " Shows bracket matches.set encoding=utf-8" set vb " Enables visual bell (disables audio bell).set wildmenu " Enables bash style tab completion.set lazyredraw " redraw only when we need to." Tabs functionalityset expandtab " Insers spaces instead of tabs.set tabstop=2set softtabstop=2set shiftwidth=2" Indentation functionalityset nowrapset autoindent " Copies indentation from previous line." Searchset hlsearch " Highlights searches.set ignorecase " Ignores case while searching.set smartcase " Ignore 'ignorecase' if search contains uppercase letters.set incsearch " Highlights dynamically as you start to search.set ttimeoutlen=100 " Solves the problem with delayed O.""" Key Bindingslet mapleader = ","let localleader = "-"" Tabsnoremap :tabnextinoremap :tabnextnoremap :tabpreviousinoremap :tabpreviousnoremap :tabeditinoremap :tabedit"" Selectionsnnoremap c :nohlsearch"" Modifications" Sources ~/.vimrc.noremap s :source $MYVIMRC" Open ~/.vimrc in a new tabnnoremap v :tabedit $MYVIMRC" NERDD Treenoremap :NERDTreeToggle" Gundonnoremap u :GundoToggle" Syntastic" let g:syntastic_php_checkers = ['php']""" Adding comment syntax for unfamiliar languages" Prologautocmd FileType apache set commentstring=%\ %sautocmd FileType lhaskell set commentstring=>\ %s" Python tabsautocmd Filetype python set expandtab tabstop=2 softtabstop=2 shiftwidth=2