Skip to content

Repository files navigation

Dot Vim of Siko

fork from VimConf

A vimrc file and different bundles. This vim setup requires at least Vim 7.3 compiled with python & multibyte support.

The font used when running gVim is Inconsolata; the OpenType file is included in this repo.

The config uses neobundle for installing and updating bundled modules.

For Tagbar to work well with JavaScript (and probably other languages), we highly recommend installing the latest version of Exuberant Ctags.

For Syntastic to check syntax of different file types, you optionally need to have a PHP runtime, JSHint, and/or PyFlakes installed.

Requirements

  • Vim 7.3 compiled with python & multibyte support.
  • An up to date installation of git.

Setup

Check out VimConf to your home folder like so:

cd ~

git clone --recursive git://github.com/beardedprojamz/VimConf.git

Then create symlinks to the files inside the repo:

ln -s ~/dotvim/.vim ~/.vim

ln -s ~/dotvim/.vimrc ~/.vimrc

ln -s ~/dotvim/.vimrc_custom ~/.vimrc_custom

ln -s ~/dotvim/.gvimrc ~/.gvimrc

That way, any time you want to update to the latest versions of the VimConf, you can just git pull inside the VimConf folder.

cd ~/dotvim/

git pull

Bundle List

All of these are loaded as git submodules as of 01/19/2012 so if your repo is older than that you will need to go into your checkout and do the below commands for things to work:

git pull

git submodule init

git submodule update

If you haven't checked out the repo yet, be sure and clone it with the --recursive flag and it will grab everything.

Color Schemes

Keybindings and Commands

NERDCommenter Default Mappings

The below mappings are default in NERDCommenter, and the ones most used, so they are included in our README.

KeysCommand
,c[spacebar]Toggles comment state of the selected line(s)
,clComment current line or text selected in visual mode (forces nesting)
,cuUncomment selected lines(s)

RopeVim and Python commands

To use Rope you need to build the project: :RopeOpenProject and :RopeAnalyzeModules. Make sure you add anything your project needs, path wise. For example, run :RopeProjectConfig and add the paths:

# You can extend python path for looking up modulesprefs.add('python_path', 'lib')
KeysCommand
C-spaceAutocomplete as you type.
,gGo to definition of object under cursor.
,dDisplay documentation of object under cursor.
,fFind all occurrences of object under cursor.
,jJump to global object name.
,bInsert PDB set_trace() breakpoint.
[[ or ]]Next/previous class or global function.
[M or ]MNext/previous method.

See python-mode for more shortcuts and options.

Custom Mappings

KeysCommand
ghGitGutter Next Hunk
gHGitGutter Previous Hunk
,,Toggles comment state of the selected line(s)
,siAdds a 'Signature' to the end of the line. Ex. ' -- Ben Hayden 5/14/2012'
,tcClose tab
,tnNext tab
,tpPrevious tab
,teEdit new tab
,lNavigate buffers
,/Grep in the current directory
,yShow yank buffers to paste from
,ntToggle NERDTree plugin
,tbToggle Tagbar plugin
,eOpen Syntastic Error Location List
,enGo to next error
,epGo to previous error
,igToggle IndentGuides plugin
,mlCompile LESS file to CSS. Requires NPM install of less
,pSet paste nonumber for easy copy & pasting in a terminal
,npSet nopaste number to go back normal editing mode
,xpPut (Paste) from system clipboard
,xyYank (Copy) to system clipboard
,xxCut to system clipboard
,sWrite file
,spTurn on Spell checking for EN_US
,nspTurn off Spell checking for EN_US
,qWrite & quit file
,rfTurn Syntax off/on on a file - a "refresh" of the syntax highlighting
,vVertical split window
,hHorizontal split window
,cwClose window
,bdDelete (close) buffer
,chClear (turn off) highlighting
,rtRe-tab entire file. (Shortcut for gg=G)
,hbSend selected visual hunk to hastebin
,OInsert a newline before the current line without entering insert mode
,oInsert a newline after the current line without entering insert mode
,[spacebar] [character]Insert a character in place without entering insert mode
,a [character]Appends a character in place without entering insert mode
,wsRuns TrimWS and retab on the current buffer
:WWrite as super user
:Tabs2SpacesConvert tab characters to 4 space characters
shift + down arrowJump down 10 lines
shift + up arrowJump up 10 lines
control + hSwitch to left window
control + jSwitch to bottom window
control + kSwitch to top window
control + lSwitch to right window
control + pStart CtrlP plugin
*visual selection + *Visual Selection Search with //
visual selection + #Visual Selection Search with ??

About

vim files of siko

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages