You can clone the repository and run the script to install:
source install.sh
The installation is to copy dotfiles from the project folder, say ~/Projects/dotfiles
, to ~
- vim-gitgutter
- The highlight for sign column was disabled for vim-airline
- nerdtree
<F5>
to toggle nerdtree
- unimpaired
- Document
yol
: toggle listyon
: toggle numberyoh
: toggle hlsearch[
/]
to open / close settingsb
: buffer switchB
: buffer first/lastq
: quickfix switchQ
: quickfix first/last<space>
: to add new line before/after current linee
: bubble line up/down
- vim-airline
- The theme is also set to
solarized
- The theme is also set to
- vim-surround
cs
+marker1
+marker2
: changemarker1
asmarker2
(ex:cs"'
)ds
+marker
: deletemarker
(ex:ds"
)ys
: add surround
- tagbar
<F7>
: Toggle TagBar
- taglist
- depends on ctags
<F11>
: Toggle Tlist
- nerdcommenter
<leader>
is set to,
,
+cl
: comment current line. We can addcount
before the command. (,
+cb
is preferred for block),
+cu
: Uncomment the selected lines,
+ca
: Change the style of comment. (From/* */
to//
in c/cpp)
- nerdtree
- vim-easymotion
g:EasyMotion_leader_key
is set to,
,
+s
,
+w
,
+b
,
+f
- vim-repeat
- matchit
- vim-colorschemes
- Set the
colortheme
assolarized
invimrc
- For windows,
solorzied
is not used.
- Set the
- vim-latex
- ctrlp
,
+p
: Open the ctrl p window, current directory and sub-directories,
+m
: Open the ctrl p window, with recently modified files
- leaderf
,
+ff
: Open the leaderf window
- vim-gutentags
- Generate tags automatically when the root folder (with .croot) is found
- ctags is required
Here are some notes about setting terminal color in windows
Download the ansi_blows. color scheme
- Download the color settings from official website
- Unzip it and enter
putty-colors-solarized
directory, copy the color settings. - Edit
PieTTY.ini
and add the color settings to the session that you want. - Check the setting
Terminal-type string
inConnection -> Data
should bexterm-256color
- Check the setting
Allow terminal to use xterm 256-colour mode
inWindow -> Colours
is enabled
Download the dircolors for solarized in dircolors-solarized. I use dircolors.256dark
and it works fine. In the install script, the file will be copied as ~/.dircolors
and there's an command in .alias
to apply the setting
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
The highlight for sign column was disabled for vim-airline
highlight clear SignColumn
<F5>
: Toggle NERDTree (on Left)<F6>
: Not using<F7>
: Toggle TagBar<F8>
: Trinity Toggle All<F9>
: Trinity Toggle ScrExpl<F10>
: Trinity Toggle TagList<F11>
: Trinity Toggle NerdTree (onRight)
,
+r
: Replace the current word in all opened buffers,
+v
: Reload,
+ss
: Strip trailing whitespace
;;
: Mapping;;
to<ESC>
in normal mode
Oh-my-zsh changes the style of editing. Please install it right after you get a new computer. Here's couple of plugins used here:
- Theme: powerlevel10k
- Plugins: zsh-completions zsh-autosuggestions zsh-syntax-highlighting
fzf
is also one of the must use plugin to enhance the performance.