Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agilous/dot-vim
My VIM config heavily borrowed from Sharethrough's
https://github.com/agilous/dot-vim
Last synced: 30 days ago
JSON representation
My VIM config heavily borrowed from Sharethrough's
- Host: GitHub
- URL: https://github.com/agilous/dot-vim
- Owner: agilous
- Created: 2014-10-16T12:47:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T19:10:15.000Z (almost 10 years ago)
- Last Synced: 2023-04-13T23:41:08.347Z (over 1 year ago)
- Language: VimL
- Size: 441 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
installation
------------* Clone git repo into home directory
* `mv dot-vim .vim`
* `cd ~/.vim`
* Run `git submodule init` and `git submodule update`
* `ln -s ~/.vim/vimrc ~/.vimrc`
* `ln -s ~/.vim/gvimrc ~/.gvimrc`#### CTags
* download from [Sourceforge](http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags-5.8.tar.gz/download?use_mirror=softlayer)
* `tar xzvf ctags-5.8.tar.gz`
* `cd ctags-5.8`
* `./configure`
* `make`
* `sudo make install`
* if there are any problems, read this: http://runtime-era.blogspot.com/2012/05/exuberant-ctags-in-osx-107.html#### JSHint
* `brew install node`
* `curl https://npmjs.org/install.sh | sh`
* `npm install -g jshint`customizations
--------------* Comma is <leader>
* cf - copy current file's path. This is good for a testing workflow where you copy the spec file's path, go to the terminal, and paste in the path after an rspec command
* Command / - comment out current line or visually selected lines
* v - creates empty vertical split
* ws - removes trailing whitespace
* rt - generate ctags for current directory for find definition
* Control ] - go to definition
* Control s - split window and go to corresponding rspec fileplugin additions
----------------### Control-P
* `cd ~/.vim`
* `git clone https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim`
* `git submodule add https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim`
* Command t - find file
* b - find file in open buffers
* cpc - refresh file buffer ("control-p clear")### NERD Tree
* nt - open/close NERD tree### Zoomwin
* - set focus on current window/show all open windows### Kwbd
* bd - close buffer without closing split window### Git Grep
* gg - git grep search for input### JSHint
* Saving js files with errors will show a red squiggle.
* Open the quickfix window (:copen|:cclose) to see the error and line number.