All Projects → coin8086 → vimrc

coin8086 / vimrc

Licence: other
Simple VIM settings in a single .vimrc file.

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vimrc

VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (-4.17%)
Mutual labels:  vimrc, vim-settings
dotfiles
🔯 A collection of my rc files (tmux, neovim, zsh, fish, poetry, git, ...etc) and utilities that make everyday coding fun!
Stars: ✭ 23 (-4.17%)
Mutual labels:  vimrc
navim
A full-blown IDE based on Neovim (or Vim) with better navigation.
Stars: ✭ 16 (-33.33%)
Mutual labels:  vimrc
vimrc-builder
ⓥ vimrc file builder
Stars: ✭ 54 (+125%)
Mutual labels:  vimrc
dotfiles
.foos for foos & more
Stars: ✭ 21 (-12.5%)
Mutual labels:  vimrc
dotfiles
My personal monorepo: dotfiles, /etc-files, single-file scripts, vim plugins, webexts/userscripts, xmonad config, all that stuff…
Stars: ✭ 84 (+250%)
Mutual labels:  vimrc
dotfiles
⚫️ ~ is where the ♥ is - my dotfiles.
Stars: ✭ 94 (+291.67%)
Mutual labels:  vimrc
dotfiles
my personal dotfiles for tmux, bash, vim and git
Stars: ✭ 73 (+204.17%)
Mutual labels:  vimrc
dotfiles
Setup git, vim, zsh, SublimeText, tmux etc. using one command
Stars: ✭ 107 (+345.83%)
Mutual labels:  vimrc
dotfiles
🍴 ~ dotfiles
Stars: ✭ 26 (+8.33%)
Mutual labels:  vimrc
dotfiles
This is a dotfiles repository created and maintained by @erdaltsksn. It contains a collection of `.files`.
Stars: ✭ 16 (-33.33%)
Mutual labels:  vimrc
dotfiles
My amazing vim, zsh and tmux config files
Stars: ✭ 25 (+4.17%)
Mutual labels:  vimrc
nvim
Structure, documented, super fast neovim configuration. 可能是翻斗花园最好用的 neovim 配置[^1]。
Stars: ✭ 223 (+829.17%)
Mutual labels:  vimrc
swim
🏊‍♀️ Switch between multiple vimrc files
Stars: ✭ 80 (+233.33%)
Mutual labels:  vimrc
dotfiles
No description or website provided.
Stars: ✭ 20 (-16.67%)
Mutual labels:  vimrc
vim-config
No description or website provided.
Stars: ✭ 83 (+245.83%)
Mutual labels:  vimrc
vimrc
A shell script to deploy my vim configuration
Stars: ✭ 19 (-20.83%)
Mutual labels:  vimrc
terminal-themes
rc files for vim, tmux, iterm and zsh
Stars: ✭ 18 (-25%)
Mutual labels:  vimrc
dotfiles
Poom's Neovim, Tmux, Fish and other configurations for macOS & Linux. Literally my entire world.
Stars: ✭ 36 (+50%)
Mutual labels:  vimrc
dotfiles
My main working machine setup. Here be cyber dragons, and optional bugs.
Stars: ✭ 35 (+45.83%)
Mutual labels:  vimrc

vimrc

不用任何额外插件,把VIM配置成一个IDE!这个配置我已经用了好多年,希望对你有用。

安装

  • 把vimrc文件拷贝你的home目录下,改名为.vimrc
  • 在.bashrc中加入一行: stty -ixon 这是为了在VIM中可以按ctrl+s进入shell,后详

功能

主要功能有:

  • 显示行号和底部状态栏
  • 多文档编辑、切换
  • 在指定目录中查找关键字
  • 一键进入/退出shell
  • 集成Git命令:grep,diff,blame和log
  • 支持Pathogen VIM插件系统
  • ……

具体如下:

  • 使用2个空格替换一个tab
  • 缩进2个空格
  • 显示行号
  • 自动缩进
  • 自动把工作目录切换到当前打开文件所在的目录
  • 高亮显示搜索关键字
  • cursor所在行加下划线显示
  • 底部状态行显示当前文件路径、行号、列号等信息
  • 保存文件时自动删除行尾空格
  • 启用语法高亮
  • 根据文件类型自动设定缩进大小

它还定义了一些快捷键:

  • ctrl+s进入shell(需要在.bashrc中加入stty -ixon),从shell退回vim按ctrl+d
  • ctrl+j和ctrl+k可以在cursor不移动的情况下向下或向上滚动屏幕
  • ctrl+l列出当前打开的文件,然后你只需输入数字序号就可以切换到对应文件
  • ctrl+n和ctrl+p直接切换到打开文件列表里的下一个或者上一个文件
  • ctrl+o切换回刚才的文件
  • F2在工作目录(根据前面的设定会自动切换到当前打开文件所在的目录)下搜索cursor所在的word——这个命令不会立即执行,需要你回车确认,因此你可以在执行前修改命令参数,比如调整要搜索的关键字或者排除一些不要搜索的目录
  • F3打开搜索结果小窗户(如果还没有打开或者被关闭了的话)
  • +/-增加或者减小搜索结果窗的大小
  • F4关闭搜索结果窗
  • F5保存当前打开文件列表到~/.vim_recent_files(需要回车确认),这样下次就可以使用 vi -S ~/.vim_recent_files 命令打开这些文件
  • F6 Git grep当前word,即:在当前的Git Repo里查找,不会查找非Git目录,如项目的日志和临时目录等
  • F7 Git diff当前文件
  • F8 Git blame当前文件
  • F9 Git log当前文件

这个配置文件不到100行,但是基本的功能都有了,我已经用了很多年。它没有配置Tag、没有过多功能炫目的子窗口,但依我的经验,这已足够——我主要用它做Web开发以及服务器运维的工作。另外,它还包含大量注释,供你根据自己的需求进一步定制。

如果你需要更加强大的配置,请参考 https://github.com/coin8086/vim-settings

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].