README.md 1.79 KB
Newer Older
Murukesh Mohanan's avatar
Murukesh Mohanan committed
1 2
# My vimrc

3
This repository contains my `.vim` folder.  The `vimrc` file is inside the folder.
Murukesh Mohanan's avatar
Murukesh Mohanan committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Of note:

- `sudo` write: `cmap w!! w !sudo tee >/dev/null %`  
If you opened a root-owned file but forgot to use `sudo`, use `:w!!` to write.
- Only the latest for me:

        let g:syntastic_cpp_compiler_options=' -std=c++11'
        let g:syntastic_python_python_exec = '/usr/bin/python3'
- May the `Shift` not be with you:

        nore ; :
        nore , ;
  
## [Plugins](bundle)

20 21 22
Since I use `vim-plug` to handle plugins, a `:PlugInstall` would be appropriate on first run.

- [vim-plug](https://github.com/junegunn/vim-plug) - for managing plugins
Murukesh Mohanan's avatar
Murukesh Mohanan committed
23 24
- [supertab](https://github.com/ervandew/supertab) - for completion awesomeness
- [syntastic](https://github.com/scrooloose/syntastic) - for highlighting the living daylights out of syntax errors
25
- [YouCompleteMe](https://github.com/Valloric/YouCompleteMe.git)
Murukesh Mohanan's avatar
Murukesh Mohanan committed
26
- [vim-airline](https://github.com/bling/vim-airline)
27 28 29 30 31 32 33 34 35 36 37
- [ctrlp.vim](https://github.com/ctrlpvim/ctrlp.vim.git)
- [diffchar.vim](https://github.com/vim-scripts/diffchar.vim)
- [molokai](https://github.com/tomasr/molokai.git)
- [nerdtree](https://github.com/scrooloose/nerdtree.git)
- [tabular](https://github.com/godlygeek/tabular.git)
- [tagbar](https://github.com/majutsushi/tagbar.git)
- [vim-fugitive](https://github.com/tpope/vim-fugitive.git)
- [vim-go](https://github.com/fatih/vim-go.git)
- [vim-markdown](https://github.com/gabrielelana/vim-markdown)
- [vim-surround](https://github.com/tpope/vim-surround.git)
- [vimtex](https://github.com/lervag/vimtex)
Murukesh Mohanan's avatar
Murukesh Mohanan committed
38 39 40 41
- [vim2hs](https://github.com/dag/vim2hs) - Haskell in all its visual beauty:

        symbol :: Eq s => s -> Parser s s
        symbol a x = satisfy (a == ) x
42
 Becomes:
Murukesh Mohanan's avatar
Murukesh Mohanan committed
43 44 45

        symbol :: Eq s ⇒ s → Parser s s
        symbol a x = satisfy (a ≡ ) x