Code Monkey home page Code Monkey logo

vimfiles's Introduction

vimrc

Installtion

1. Backup your original vim files

mv ~/.vimrc ~/.vimrc_backup
mv ~/.vim ~/.vim_backup

2. Check out from github

git clone https://github.com/HungYuHei/vimfiles.git ~/.vim

3. Link ~/.vimrc

ln -s ~/.vim/vimrc ~/.vimrc

4. Install dependents

Mac(homebrew)
brew update
brew install ctags
brew install the_silver_searcher
Ubuntu
sudo apt-get install ctags
# Install the_silver_searcher, take a look at https://github.com/ggreer/the_silver_searcher

5. Install plugins

vim -c 'PlugInstall|q|q'
vim -c 'CocInstall coc-json coc-html coc-solargraph coc-snippets coc-tsserver'

Then restart vim.

Keyboard shortcuts

Please keep your mind that <leader> is set to ,

  • <F7> Toggle NERDTreeFind
  • <F8> Toggle NERDTree
  • <F9> Toggle TagList
  • <F10> Toggle paste mode
  • <leader><leader> Trig EasyMotion (e.g. <leader><leader>w <leader><leader>f etc.)
  • <leader>s Horizontally split window
  • <leader>v Vertically split window
  • Ctrl-[hjkl] Move between windows (left down up right)
  • Ctrl-p Invoke ctrlP (reference: ctrlP homepage)
  • <leader>a :Ag
  • <F5> copy the file's relative path to the clipboard
  • <leader>cp copy the file's absoulte path to the clipboard
  • <leader>V Reselect the text that was just pasted
  • <leader>w Strip all trailing whitespace in the current file
  • <leader>lc Toggle highlight cursor column
  • <leader>ll Toggle highlight cursor line
  • <leader>ms Display 80-column indication
  • <leader>mh Hide 80-column indication
  • <leader>be Toggle BufExplorer
  • <leader>c<space> Toggle NERDCommenter
  • <leader>ig Toggle indent guides

Highlight Commands:

  1. :Highlight list all highlights.
  2. :Highlight [n [pattern]] set highlight.
  3. :Hsample display all highlights in a scratch buffer.
  4. :Hclear [hlnum|pattern|*] clear highlights.
  5. :Hsave x, :Hrestore x save/restore highlights (x any name).

Saving current highlights requires '!' in 'viminfo' option.

Please reference to the plugin's homepage below to see more shortcuts

Plugins

  • The NERD tree : A tree explorer plugin for navigating the filesystem
  • vim-surround : Plugin for deleting, changing, and adding "surroundings"
  • BufExplorer : Quickly and easily switch between buffers
  • NERDCommenter : A plugin that allows for easy commenting of code for many filetypes
  • snipMate : TextMate-style snippets for Vim
  • TagList : Provide an overview of the structure of source code files
  • fugitive : A Git wrapper so awesome, it should be illegal
  • the_silver_searcher : Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
  • rails : Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more
  • matchit : Extended % matching for HTML, LaTeX, and many other languages
  • EasyMotion : Vim motions on speed
  • ctrlP : Fuzzy file, buffer, mru, tag, etc finder
  • indentLine : A vim plugin to display the indention levels with thin vertical lines
  • vim-repeat : Enable repeating supported plugin maps with "."
  • Tabular : Vim script for text filtering and alignment
  • Emmet : provides support for expanding abbreviations similar to emmet.
  • indent-line : display the indention levels with thin vertical lines
  • vim-airline : lean & mean status/tabline for vim that's light as air

Screenshot

vim-screenshot

vimfiles's People

Contributors

hungyuhei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.