This is a fork repo form Eddie Kao ([email protected])/eddie-vim thanks for all.
With the original repo eddie-vim. I remove all default hotkey setting and redefind at jyyan-vimrc.
-- My own Vim configurations and plugins which I used.
Primary Vim relative settings are in plugin/settings/Settings.vim
file, and isolate other plugins' settings in plugin/settings
directory.
and Here are some screenshots on the other platforms.
-
BACKUP your
.vim
directory and.vimrc
first.(IMPORTANT!) -
cd ~
to change directory to your home directory. -
copy files to your home directory:
git clone git://github.com/jyyan/jyyan-vim.git
- cd to
jyyan-vim
directory and execute theupdate.sh
to get latest version modules:
cd jyyan-vim
./update.sh
- make a symbolic link
.vim
tojyyan-vim
that you just cloned, or just rename it to.vim
also be fine:
ln -s jyyan-vim .vim
- link the vimrc to
ln -s .vim/vimrc .vimrc
- if you're still not familiar with the movement in vim by HJKL or yanking and pasting text, I've made a easier version:
ln -s .vim/easy-vimrc .vimrc
- if you use GUI version VIM, such as MacVim or GVim, you can also link to
.gvimrc
:
ln -s .vim/gvimrc .gvimrc
- if you want to use same satting like me , you can also link
jyyan-vimrc
:
ln -s .vim/jyyan-vimrc .vimrc
-
if you use Powerline under Ubuntu or something which can not show the correct icons/fonts on the bottom, you can check this link, it looks pretty nice.
-
you may need to install
ack
first if you useack.vim
.
change directory to ~/.vim
and execute ./update.sh
script, it should do all the updates automatically.
- Resize splited windows automatically, so that you get a bigger editing room if you're working with a smaller screen. (stole from Gary Bernhardt)
- Toggle between working mode and presentation mode by
<leader>z
, but only work in GUI version Vim. You can check here to see how it looks like. (stole from Mike Skalnik) - some usually used key mappings in normal mode at jyyan-vimrc:
<F1>
to launch a Calendar window.<F2>
to save this document and run checksyntax_vim automatically<ctrl>+s
to save file too<F4>
to close this Tabpage or close this document use:q
<F5>
is script runner, according to the filetype, it will run Ruby or Python script, or even CoffeeScript(You have to install CoffeeScript first, of course). if the filetype is VimScript,<F5>
will run:source %
for you.<F6>
to switch to previous tab, and<F8>
to the next tab.<F7>
to open a empty Tabpage<F9>
to toggle NERTree list at left site<F11>
to toggle yanking list<F12>
to toggle ctag list at right site<CTRL>+<F12>
to call ctag command use:!ctags ...
<leader>v
to open.vimrc
in a new tab.<leader>0
to edit or createREADME.md
in current working directory.<ctrl>w p
will launch a quick window to match keywords from your current working directory, not only file name, but also path name. and<ctrl>w u
will match from your MRU(Mostly Recent Used) files, which is also frequently used.- hit
<leader>
twice to toggle comment on and off. <tab>
and<shift><tab>
to increase and decrease the syntax identation.<leader>v
to open.vimrc
in a new tab.<leader>0
to edit or createREADME.md
in current working directory.- by the way , the key always mapped with <> key by default
- Remove tailing whitespace automatically while saving.
- You can make one copy of jyyan-vimrc & ref: vimrc / pro-vimrc / easy-vimrc to redefine what you like for .
-
cTags Install ctags and vim :
Ubuntu
OpenSUSE
Its that the default ctags plugin setting is for ubuntu environment. When you use to open the ctags list , got the message show you vim could not found the ctags command. just try to check your ctags path and replace my settings in plugin/settings/Ctags.vim
file:
let Tlist_Ctags_Cmd = '/your/path/to/ctags'
and then check the ctags bin locate path using whereis
:
# whereis ctagsctags
<b>/usr/bin/ctags</b> /usr/share/man/man1/ctags.1.gz /usr/share/man/man1p/ctags.1p.gz
and change the setting from
let Tlist_Ctags_Cmd = '/usr/local/bin/ctags' # ubuntu ctags location
to
let Tlist_Ctags_Cmd = '/usr/bin/ctags' # openSUSE ctags location
or just link the ctags bin to new locations
#sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
and Exuberant Ctags is recommended. at last , if you are use windows. you can download ctags from Ctags download and unzip it. copy the ctags.exe to your WINDOWS\SYSTEM32 folder , then you can use ctags command in cmd.exe .
-
Windows install gvim guide:
-
download vimruntime & Gvim from : Vim release page
-
un package those 2 zip file into SAME folder. such like "program files\vim\vimruntime"
-
and open CMD interface in "program files\vim" folder
-
clone this git repo over there
-
and then make .vim / .vimrc link , use below command:
mklink ".vim" "jyyan-vim" /d
mklink ".vimrc" "jyyan-vim/jyyan-vimrc" /h
-
update jyyan-vim , use ./update.sh or
git submodule foreach --recursive git pull origin master
command -
finished
-
Maybe you would got the warning message such like this
CheckSyntax: Run vim with the --servername NAME command line option to enable use of AsyncCommand
, on the time you use vim to open some files at linux environment. you can open~/.bashrc
and addition the followinig line :alias vim='vim --servername '
such as :
alias vim='vim --servername editor'
and then please relogin try again.
Open vim/gvim & Enjoy it, and if there's any question or comment, feel free to let me know :)
Jun-Yuan Yan ([email protected])