mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 15:06:38 -05:00
Updated info in the README as well as adding the mappings for mouse
buttons and the list of plugins. Two extensions that never really got integrated into the config have been removed, so you should readd them to bundle.user if you use them. A lot of the keyboard config has changed, but most of that is just formatting; the additions are the new mouse button mappings, and the return of shift+middleclick to paste from X, which was accidentally removed at some point before. I also switched the default state of the syntax checker to off to avoid having people run into issues and not already know how to enable/disable it.
This commit is contained in:
parent
ec0032348d
commit
1c21ca23c9
7 changed files with 301 additions and 219 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -79,15 +79,9 @@
|
||||||
[submodule "vim/bundle/vim-move"]
|
[submodule "vim/bundle/vim-move"]
|
||||||
path = vim/bundle/vim-move
|
path = vim/bundle/vim-move
|
||||||
url = https://github.com/matze/vim-move.git
|
url = https://github.com/matze/vim-move.git
|
||||||
[submodule "vim/bundle/vim-c-cr"]
|
|
||||||
path = vim/bundle/vim-c-cr
|
|
||||||
url = https://github.com/jtmkrueger/vim-c-cr.git
|
|
||||||
[submodule "vim/bundle/breeze.vim"]
|
[submodule "vim/bundle/breeze.vim"]
|
||||||
path = vim/bundle/breeze.vim
|
path = vim/bundle/breeze.vim
|
||||||
url = https://github.com/gcmt/breeze.vim.git
|
url = https://github.com/gcmt/breeze.vim.git
|
||||||
[submodule "vim/bundle/vim-expand-region"]
|
|
||||||
path = vim/bundle/vim-expand-region
|
|
||||||
url = https://github.com/terryma/vim-expand-region.git
|
|
||||||
[submodule "vim/bundle/vim-signify"]
|
[submodule "vim/bundle/vim-signify"]
|
||||||
path = vim/bundle/vim-signify
|
path = vim/bundle/vim-signify
|
||||||
url = https://github.com/mhinz/vim-signify
|
url = https://github.com/mhinz/vim-signify
|
||||||
|
|
111
README.md
111
README.md
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
## Requirements ##
|
## Requirements ##
|
||||||
|
|
||||||
1. **Vim** v7.4+: Everything has been written and tested using Vim 7.4.135, and I assume there could be issues with 7.3 and below.
|
1. **Vim** _version_ >= _7.4_: It might work on earlier versions but all development and testing has been done here.
|
||||||
2. **Git** (__optional__): Required to clone and update the repository, and pull the plugins as submodules.
|
2. **Git** (_optional_): Required to clone and update the repository, and pull the plugins as submodules.
|
||||||
3. **CTags** (__optional__): Available @ <http://ctags.sourceforge.net>, place in __$PATH__ or the vim folder to use the tagbar or extended C omni/auto-completion.
|
3. **CTags** (_optional_): Required to generate tags needed by the tagbar plugin, as well as to have tags provided by auto-completion ([ctags website](http://ctags.sourceforge.net)).
|
||||||
4. **Grep and Find** (__optional__): Have grep, fgrep, egrep and agrep ([windows binaries](http://gnuwin32.sourceforge.net/packages/grep.htm)), and find and xargs ([windows binaries](http://gnuwin32.sourceforge.net/packages/findutils.htm)) in $PATH or the vim folder to use the Grep plugin commands.
|
4. **Grep and Find** (_optional_): Have grep, fgrep, egrep and agrep ([windows binaries](http://gnuwin32.sourceforge.net/packages/grep.htm)), and find and xargs ([windows binaries](http://gnuwin32.sourceforge.net/packages/findutils.htm)) in $PATH or the vim folder to use the Grep plugin commands.
|
||||||
6. **Powerline Fonts** (__optional__): Required for a better looking lightline statusbar and should be disabled if they're not available ([powerline-patched fonts](https://github.com/Lokaltog/powerline-fonts)).
|
6. **Powerline Fonts** (_optional_): Needed to enable the fancier looking status line ([powerline-patched fonts](https://github.com/Lokaltog/powerline-fonts)).
|
||||||
5. **Bash** (__optional__): Required to use the update and ctags generation scripts, both of which can be run with the commands listed within.
|
5. **Bash** (_optional_): Used in the _update_ and _gentags_ scripts.
|
||||||
|
|
||||||
## Features ##
|
## Features ##
|
||||||
|
|
||||||
|
@ -20,40 +20,101 @@
|
||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
1. Clone the darkcloud-vimconfig repo and use the __update__ script to install the plugins:
|
1. Clone the darkcloud-vimconfig repo and use the _update_ script to install the plugins:
|
||||||
* `git clone https://github.com/prurigro/darkcloud-vimconfig.git`
|
* `git clone https://github.com/prurigro/darkcloud-vimconfig.git`
|
||||||
* `sh darkcloud-vimconfig/update`
|
* `sh darkcloud-vimconfig/update`
|
||||||
* Note: The __update__ script requires bash, but if it's not available you can enter the __darkcloud-vimconfig/__ folder and run: `git submodule update --init` to install the plugins manually, then create __vim/vimrc.user__ and remember to run: `:Helptags` once everything else is running.
|
* **Note**: The _update_ script requires bash, but if it's not available you can enter the _darkcloud-vimconfig/_ folder and run: `git submodule update --init` to install the plugins manually, then create _vim/vimrc.user_ and remember to run: `:Helptags` once everything else is running.
|
||||||
2. If you don't know where vim expects to find your vimrc, start vim and run: `:version` to find the values "user vimrc file" (for a single-user install) and "system vimrc file" (for a system-wide install). T
|
2. If you don't know where vim expects to find your vimrc, start vim and run: `:version` to find the values "user vimrc file" (for a single-user install) and "system vimrc file" (for a system-wide install). T
|
||||||
3. Copy or symlink the vimrc file from `darkcloud-vimconfig/vimrc` to one of the locations vim expects to find it, based on whether you want a local or system-wide install, then choose one of the following:
|
3. Copy or symlink the vimrc file from `darkcloud-vimconfig/vimrc` to one of the locations vim expects to find it, based on whether you want a local or system-wide install, then choose one of the following:
|
||||||
* Edit the __g:darkcloudpath__ variable in the vimrc file iteself, pointing it to the location you're keeping the __darkcloud-vimconfig__ repo folder.
|
* Edit the _g:darkcloudpath_ variable in the vimrc file iteself, pointing it to the location you're keeping the _darkcloud-vimconfig_ repo folder.
|
||||||
* Create a file @ __~/.vim/darkcloud-path.vim__ and in it put the following: `let g:darkcloudpath="/etc/darkcloud-vimconfig"`, but replacing __"/etc/darkcloud-vimconfig"__ with the path to the __darkcloud-vimconfig__ repo folder.
|
* Create a file @ _~/.vim/darkcloud-path.vim_ and in it put the following: `let g:darkcloudpath="/etc/darkcloud-vimconfig"`, but replacing _"/etc/darkcloud-vimconfig"_ with the path to the _darkcloud-vimconfig_ repo folder.
|
||||||
* Place __darkcloud-vimconfig__ in the default location @ __/etc/darkcloud-vimconfig__.
|
* Place _darkcloud-vimconfig_ in the default location @ _/etc/darkcloud-vimconfig_.
|
||||||
* Create your own vimrc and have that set the __g:darkcloudpath__ variable before sourcing the included vimrc.
|
* Create your own vimrc and have that set the _g:darkcloudpath_ variable before sourcing the included vimrc.
|
||||||
* Come up with some other solution that fits your setup better than these. :)
|
* Come up with some other solution that fits your setup better than these. :)
|
||||||
4. Open the vimrc you just installed and either edit the variables in the "__USER CONFIG SETTINGS__" section, or (preferably) copy them to __vim/vimrc.user__ and edit them there:
|
4. Open the vimrc you just installed and either edit the variables in the "_USER CONFIG SETTINGS_" section, or (preferably) copy them to _vim/vimrc.user_ and edit them there:
|
||||||
* **g:darkcloudpath**: Set to the location of the darkcloud-vimconfig folder. (__default__: __/etc/darkcloud-vimconfig__)
|
* **g:darkcloudpath**: Set to the location of the darkcloud-vimconfig folder. (_default_: _/etc/darkcloud-vimconfig_)
|
||||||
* **g:autostartfiler**: 1 = Start the filer file manager when vim is run and the buffer is empty | 0 = Do nothing when vim is run and the buffer is empty (__default__: 1)
|
* **g:autostartfiler**: 1 = Start the filer file manager when vim is run and the buffer is empty | 0 = Do nothing when vim is run and the buffer is empty (_default_: 1)
|
||||||
* **g:autostartchecker**: 1 = Check syntax once an appropriate file is loaded | 0 = Check syntax only after syntax checking is toggled on (__default__: 1)
|
* **g:autostartchecker**: 1 = Check syntax once an appropriate file is loaded | 0 = Check syntax only after syntax checking is toggled on (_default_: 0)
|
||||||
* **g:autostarttagbar**: 1 = Have the tagbar load automatically when a compatible format is run | 0 = The tagbar will stay hidden until triggered on demand with its toggle (__default__: 0)
|
* **g:autostarttagbar**: 1 = Have the tagbar load automatically when a compatible format is run | 0 = The tagbar will stay hidden until triggered on demand with its toggle (_default_: 0)
|
||||||
* **g:powerlinefonts**: 1 = Render the statusline using characters available with powerline-patched fonts | 0 = Render the statusbar with less attractive but more compatible characters available in all fonts (__default__: 0)
|
* **g:powerlinefonts**: 1 = Render the statusline using characters available with powerline-patched fonts | 0 = Render the statusbar with less attractive but more compatible characters available in all fonts (_default_: 0)
|
||||||
* **guifont**: Set to the name of the font you would like to use with gVim followed by the size, making sure to escape spaces and that a powerline-compatible font is selected if the above option is set to 1. (__default__: Droid\ Sans\ Mono\ 12)
|
* **guifont**: Set to the name of the font you would like to use with gVim followed by the size, making sure to escape spaces and that a powerline-compatible font is selected if the above option is set to 1. (_default_: Droid\ Sans\ Mono\ 12)
|
||||||
5. Install ctags (http://ctags.sourceforge.net) to your system using a package and ensure it can be accessed in __$PATH__, or install support for vim exclusively by copying the ctags binary to the __darkcloud-vimconfig/vim__ folder.
|
5. Install ctags (http://ctags.sourceforge.net) to your system using a package and ensure it can be accessed in _$PATH_, or install support for vim exclusively by copying the ctags binary to the _darkcloud-vimconfig/vim_ folder.
|
||||||
|
|
||||||
## Configuration ##
|
## Configuration ##
|
||||||
|
|
||||||
* **Custom Configuration**: Settings with priority over those set by darkcloud-vimconfig can be added to a file named __vimrc.user__, located in __darkcloud-vimconfig/vim/__ or any of the folders in the runtimepath.
|
* **Custom Configuration**: Settings with priority over those set by darkcloud-vimconfig can be added to a file named _vimrc.user_, located in _darkcloud-vimconfig/vim/_ or any of the folders in the runtimepath.
|
||||||
* **Custom Plugins**: Pathogen compatible plugins can be cloned or extracted to "darkcloud-vimconfig/vim/bundle.user/", or a folder named "bundle" or "bundle.user" in any of the folders in the runtimepath.
|
* **Custom Plugins**: Pathogen compatible plugins can be cloned or extracted to "darkcloud-vimconfig/vim/bundle.user/", or a folder named "bundle" or "bundle.user" in any of the folders in the runtimepath.
|
||||||
* **Custom Snippets**: To add or override Emmet snippets, create __~/.vim/snippets.json__ and add your own definitions using json like shown in the [Emmet Documentation](http://docs.emmet.io/customization/snippets/).
|
* **Custom Snippets**: To add or override Emmet snippets, create _~/.vim/snippets.json_ and add your own definitions using json like shown in the [Emmet Documentation](http://docs.emmet.io/customization/snippets/).
|
||||||
* **File Associations**: To use the file manager in vim to run files with external programs, create "~/.vim/filetypes.vim" and on each line, write an association between a file extension and the program to launch files of that type that looks like: `call vimfiler#set_execute_file('mp4','xdg-open')`.
|
* **File Associations**: To use the file manager in vim to run files with external programs, create "~/.vim/filetypes.vim" and on each line, write an association between a file extension and the program to launch files of that type that looks like: `call vimfiler#set_execute_file('mp4','xdg-open')`.
|
||||||
* **Update Script**: (requires: bash+git) Use this to update the project and submodules, as well as handle any required maintenance, generate docs from the pathogen plugins and create missing config scripts with preset values.
|
* **Update Script**: (requires: bash+git) Use this to update the project and submodules, as well as handle any required maintenance, generate docs from the pathogen plugins and create missing config scripts with preset values.
|
||||||
* **Generate System Tags**: (requires: bash+ctags) Generate a list of ctags for your system libraries in __/usr/include__ and __/usr/local/include__ as well as any folders passed as arguments by running the __gentags__ script.
|
* **Generate System Tags**: (requires: bash+ctags) Generate a list of ctags for your system libraries in _/usr/include_ and _/usr/local/include_ as well as any folders passed as arguments by running the _gentags_ script.
|
||||||
|
|
||||||
|
## Mappings ##
|
||||||
|
|
||||||
|
### Mouse ###
|
||||||
|
|
||||||
|
| Binding | Mode | Action |
|
||||||
|
|:----------------------|:----:|-------------------------------------------------:|
|
||||||
|
| Shift-MiddleClick | ALL | Unbind this from vim so xorg can use it to paste |
|
||||||
|
| Ctrl-ScrollUp | ALL | Scroll right a few characters at a time |
|
||||||
|
| Ctrl-ScrollDown | ALL | Scroll left a few characters at a time |
|
||||||
|
| Alt-ScrollUp | ALL | Scroll right one character at a time |
|
||||||
|
| Alt-ScrollDown | ALL | Scroll left one character at a time |
|
||||||
|
| MiddleClick | ALL | Behaves like right-click (selects to the cursor) |
|
||||||
|
| Ctrl-RightClick | ALL | Copy selection or character under the cursor |
|
||||||
|
| Ctrl-MiddleClick | ALL | Copy selection or character under the cursor |
|
||||||
|
| Alt-RightClick | ALL | Cut selection or character under the cursor |
|
||||||
|
| Alt-MiddleClick | ALL | Cut selection or character under the cursor |
|
||||||
|
| Ctrl-Alt-RightClick | ALL | Paste at the cursor (not mouse) |
|
||||||
|
| Ctrl-Alt-MiddleClick | ALL | Paste at the cursor (not mouse) |
|
||||||
|
| Ctrl-LeftClick | ALL | Select the word being clicked |
|
||||||
|
| Alt-LeftClick | ALL | Select the line being clicked |
|
||||||
|
| Ctrl-Alt-LeftClick | ALL | Select the paragraph being clicked |
|
||||||
|
|
||||||
|
### Keyboard ###
|
||||||
|
|
||||||
|
**Todo**: For now, check comments at the top of *[vim/config/keyboard.vim](https://github.com/prurigro/darkcloud-vimconfig/blob/master/vim/config/keyboard.vim)* for a list.
|
||||||
|
|
||||||
|
## Plugins ##
|
||||||
|
|
||||||
|
* [aspnet.vim--Abshire](https://github.com/vim-scripts/aspnet.vim--Abshire.git): Syntax highlighting for ASP.NET (asp, aspx etc).
|
||||||
|
* [breeze.vim](https://github.com/gcmt/breeze.vim.git): Provides tag matching and navigation shortcuts for HTML.
|
||||||
|
* [c.vim](http://www.vim.org/scripts/script.php?script_id=3064): C Syntax Extensions for better highlighting.
|
||||||
|
* [emmet-vim](https://github.com/mattn/emmet-vim.git): Support for expanding abbreviations.
|
||||||
|
* [webapi-vim](https://github.com/mattn/webapi-vim.git) A web library used by emmet to provide support for custom snippets.
|
||||||
|
* [grep](https://github.com/yegappan/grep.git): Provides the ability to perform various match-based searches using grep.
|
||||||
|
* [gundo.vim](https://github.com/sjl/gundo.vim.git): Sidebar to visualize your undo tree and browse the differences of each change.
|
||||||
|
* [lightline.vim](https://github.com/itchyny/lightline.vim) A light and configurable statusline/tabline for Vim.
|
||||||
|
* [neocomplcache.vim](https://github.com/Shougo/neocomplcache.vim.git) The '*ultimate*' auto-completion system for Vim.
|
||||||
|
* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister.git) Replace text with the contents of a register (for paste+replace without writing over the buffer).
|
||||||
|
* [SpellCheck](https://github.com/vim-scripts/SpellCheck.git) Provides a list of spelling mistakes in the bottom bar that can be clicked to find them in the document.
|
||||||
|
* [SudoEdit.vim](https://github.com/vim-scripts/SudoEdit.vim.git) Read and write files without the necessary permissions through the use of sudo.
|
||||||
|
* [syntastic](https://github.com/scrooloose/syntastic.git) Uses system compilers and parsers to check syntax either on-the-fly or after saving a compatible document.
|
||||||
|
* [tagbar](https://github.com/majutsushi/tagbar.git) Uses ctags to generate a sidebar of the tags for the current file.
|
||||||
|
* [tcomment_vim](https://github.com/tomtom/tcomment_vim.git) File-type sensible comments that can be easily toggled on and off for blocks of text.
|
||||||
|
* [vim-extradite](https://github.com/int3/vim-extradite.git) A git commit browser extending vim-fugitive that displays differences and optionally loads old revisions.
|
||||||
|
* [vimfiler.vim](https://github.com/Shougo/vimfiler.vim.git) A curses-style file manager for vim that runs on it's own or in a sidebar and can associate handlers for file types.
|
||||||
|
* [unite.vim](https://github.com/Shougo/unite.vim.git) A library used by Vim Filer to help build its user interface.
|
||||||
|
* [vim-fixkey](https://github.com/drmikehenry/vim-fixkey.git) A set of keyboard mappings that override differences in different environments that might normally break consistency or compatibility.
|
||||||
|
* [vim-fugitive](https://github.com/tpope/vim-fugitive.git) A wrapper integrating git into vim in such a way as to provide features neither of them could offer on their own.
|
||||||
|
* [vim-jquery](https://github.com/phongnh/vim-jquery.git) An extension adding highlighting for jquery to javascript syntax.
|
||||||
|
* [vim-markdown](https://github.com/plasticboy/vim-markdown.git) Syntax highlighting, matching rules and mappings for the original Markdown and extensions.
|
||||||
|
* [vim-move](https://github.com/matze/vim-move.git) Provides a few convenient ways to move selected text.
|
||||||
|
* [vim-neco-calc](https://github.com/hrsh7th/vim-neco-calc.git) A calculator plugin extending neocomplcache.vim for the on-the-fly auto-completion of simple math equations.
|
||||||
|
* [vim-pathogen](https://github.com/tpope/vim-pathogen.git) A plugin to load other plugins while keeping them isolated in their own directory structure rather than all dumped together.
|
||||||
|
* [vim-polyglot](https://github.com/sheerun/vim-polyglot.git) A meta-package of what it attempts to ensure are the best syntax plugins for each file type.
|
||||||
|
* [vim-signify](https://github.com/mhinz/vim-signify) When a version controlled file is changed, this displays a column showing where and how, and allows for navigation to and between differences.
|
||||||
|
* [vim-surround](https://github.com/tpope/vim-surround.git) Provides functionality to exchange surrounding delimiters and xml-style tags with another, or simply remove them.
|
||||||
|
* [vim-repeat](https://github.com/tpope/vim-repeat.git) A library used by vim-surround to allow its delimiter-switching functions to be repeated with the `.` command.
|
||||||
|
* [vim-systemd-syntax](https://github.com/Matt-Stevens/vim-systemd-syntax.git) A syntax plugin providing support for systemd unit files.
|
||||||
|
* [vim-togglelist](https://github.com/milkypostman/vim-togglelist.git) Supplies toggle functions for the *location* and *error* lists, which are used by a number of plugins and normally require separate open and close commands.
|
||||||
|
* [vim-trailing-whitespace](https://github.com/bronson/vim-trailing-whitespace.git) Highlights and allows for the easy removal of trailing whitespace in documents.
|
||||||
|
|
||||||
## Notes ##
|
## Notes ##
|
||||||
|
|
||||||
* **Runtimepath**: To find the runtimepath locations currently set, run the following in vim: `:verbose set runtimepath`.
|
* **Runtimepath**: To find the runtimepath locations currently set, run the following in vim: `:verbose set runtimepath`.
|
||||||
* **Key Bindings**: You can find a list of the bindings added by darkcloud-vimconfig, as well as a few of the ones added by plugins in __vim/config/keyboard.vim__.
|
* **Key Bindings**: You can find a list of the bindings added by darkcloud-vimconfig, as well as a few of the ones added by plugins in _vim/config/keyboard.vim_.
|
||||||
* **Vim Quick Reference**: Type __??__, __?>__ and __?<__ to toggle sidebars with three styles of quick reference material on different reference topics.
|
* **Vim Quick Reference**: Type _??_, _?>_ and _?<_ to toggle sidebars with three styles of quick reference material on different reference topics.
|
||||||
|
|
||||||
## Credits ##
|
## Credits ##
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 9bd4814244f7cafe632eb38c021ef9abdd99fc42
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 966513543de0ddc2d673b5528a056269e7917276
|
|
|
@ -13,231 +13,228 @@
|
||||||
" *The default <Leader> key is: \
|
" *The default <Leader> key is: \
|
||||||
"
|
"
|
||||||
" Aliases:
|
" Aliases:
|
||||||
" :GitLog & :gitlog | (C) -> show a navigatable log of commit history
|
" :GitLog & :gitlog | (C) -> show a navigatable log of commit history
|
||||||
" :wsudo & :sudow | (C) -> write the file as root using sudo
|
" :wsudo & :sudow | (C) -> write the file as root using sudo
|
||||||
" :esudo & :sudoe | (C) -> read a file as root using sudo
|
" :esudo & :sudoe | (C) -> read a file as root using sudo
|
||||||
"
|
"
|
||||||
" Reference: (view plugin documentation for the full list of commands each offers)
|
" Reference: (view plugin documentation for the full list of commands each offers)
|
||||||
" (tcomment _ can also be -)
|
" (tcomment _ can also be -)
|
||||||
" <Ctrl-_><Ctrl-_> | (A) -> comment selection/create an empty comment
|
" <Ctrl-_><Ctrl-_> | (A) -> comment selection/create an empty comment
|
||||||
" <Ctrl-_>b | (A) -> comment the current block(s)
|
" gc | (A) -> comment selection/create an empty comment
|
||||||
" <Ctrl-_>r | (A) -> comment everything on the line to the right
|
" <Ctrl-_>b | (A) -> comment the current block(s)
|
||||||
" <Ctrl-_>p | (A) -> comment the current paragraph
|
" <Ctrl-_>r | (A) -> comment everything on the line to the right
|
||||||
" <Ctrl-enter> | (I) -> add a close bracket following an open one
|
" <Ctrl-_>p | (A) -> comment the current paragraph
|
||||||
" <Ctrl-c> | (I) -> add a close bracket following an open one
|
" + | (V) -> increase the selected region
|
||||||
" + | (V) -> increase the selected region
|
" _ | (V) -> decrease the selected region
|
||||||
" _ | (V) -> decrease the selected region
|
|
||||||
"
|
"
|
||||||
" (surround)
|
" (surround)
|
||||||
" S" | (V) -> surround selection with quotes
|
" S" | (V) -> surround selection with quotes
|
||||||
" S<a href=""> | (V) -> surround <a href="">selection</a>
|
" S<a href=""> | (V) -> surround <a href="">selection</a>
|
||||||
" ds" | (N) -> delete surrounding ""
|
" ds" | (N) -> delete surrounding ""
|
||||||
" dst | (N) -> delete surrounding tag (ie: <strong></strong>)
|
" dst | (N) -> delete surrounding tag (ie: <strong></strong>)
|
||||||
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
||||||
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
||||||
" cst" | (N) -> change any surrounding tag to ""
|
" cst" | (N) -> change any surrounding tag to ""
|
||||||
"
|
|
||||||
" (vim)
|
|
||||||
" D | (N) -> delete/cut to the end of the line
|
|
||||||
" S | (N) -> delete/cut a line up to the whitespace
|
|
||||||
"
|
"
|
||||||
" Mappings:
|
" Mappings:
|
||||||
" (mouse)
|
" (mouse)
|
||||||
" <MiddleClick> | (N) -> select text between the mouse and cursor
|
" <Shift-MiddleClick> | (A) -> unbind this from vim so xorg can paste
|
||||||
" <A-MiddleClick> | (N) -> enter input mode where you click
|
|
||||||
" <C-MiddleClick> | (N) -> paste text from current buffer at cursor
|
|
||||||
"
|
"
|
||||||
" <C-LeftClick> | (N) -> select the current line in normal mode
|
" <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time
|
||||||
" <C-LeftClick> | (I) -> select the current line in input mode
|
" <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time
|
||||||
|
" <Alt-ScrollUp> | (A) -> scroll right one character at a time
|
||||||
|
" <Alt-ScrollDown> | (A) -> scroll left one character at a time
|
||||||
"
|
"
|
||||||
" <Ctrl-ScrollUp> | (A) -> scroll right a few characters at a time
|
" <MiddleClick> | (A) -> behaves like right-click (selects to the cursor)
|
||||||
" <Ctrl-ScrollDown> | (A) -> scroll left a few characters at a time
|
|
||||||
"
|
"
|
||||||
" <Alt-ScrollUp> | (A) -> scroll right one character at a time
|
" <Ctrl-RightClick> | (A) -> copy selection or character under the cursor
|
||||||
" <Alt-ScrollDown> | (A) -> scroll left one character at a time
|
" <Ctrl-MiddleClick> | (A) -> copy selection or character under the cursor
|
||||||
" <Shift-MClick> | (A) -> unbind this from vim so xorg can paste
|
" <Alt-RightClick> | (A) -> cut selection or character under the cursor
|
||||||
|
" <Alt-MiddleClick> | (A) -> cut selection or character under the cursor
|
||||||
|
" <Ctrl-Alt-RightClick> | (A) -> paste at the cursor (not mouse)
|
||||||
|
" <Ctrl-Alt-MiddleClick> | (A) -> paste at the cursor (not mouse)
|
||||||
"
|
"
|
||||||
" <A-LeftMouse> | (N) -> select the current paragraph in normal mode
|
" <Ctrl-LeftClick> | (A) -> select the word being clicked
|
||||||
" <A-LeftMouse> | (V) -> select the current paragraph in visual mode
|
" <Alt-LeftClick> | (A) -> select the line being clicked
|
||||||
" <A-LeftMouse> | (I) -> select the current paragraph in input mode
|
" <Ctrl-Alt-LeftClick> | (A) -> select the paragraph being clicked
|
||||||
"
|
"
|
||||||
" (tabs)
|
" (tabs)
|
||||||
" <Leader>9 | (A) -> go to the next open tab
|
" <Leader>9 | (A) -> go to the next open tab
|
||||||
" <Leader>0 | (A) -> go to the previous open tab
|
" <Leader>0 | (A) -> go to the previous open tab
|
||||||
" <Leader>- | (A) -> open a new tab
|
" <Leader>- | (A) -> open a new tab
|
||||||
" <Leader>= | (A) -> create a new tab with vimfiler
|
" <Leader>= | (A) -> create a new tab with vimfiler
|
||||||
" <Leader>+ | (A) -> create a new tab with vimfiler
|
" <Leader>+ | (A) -> create a new tab with vimfiler
|
||||||
"
|
"
|
||||||
" (toggles)
|
" (toggles)
|
||||||
" ?? | (N) -> toggle the quick reference sidebar
|
" ?? | (N) -> toggle the quick reference sidebar
|
||||||
" ?> | (N) -> toggle command reference sidebar
|
" ?> | (N) -> toggle command reference sidebar
|
||||||
" ?< | (N) -> toggle normal mode key bindings reference sidebar
|
" ?< | (N) -> toggle normal mode key bindings reference sidebar
|
||||||
" `` | (N) -> toggle the vimfiler sidebar on the right
|
" `` | (N) -> toggle the vimfiler sidebar on the right
|
||||||
" ~~ | (N) -> toggle the vimfiler sidebar on the left
|
" ~~ | (N) -> toggle the vimfiler sidebar on the left
|
||||||
" <Space> | (N) -> toggle folds
|
" <Space> | (N) -> toggle folds
|
||||||
" <F1> | (A) -> toggle line numbers
|
" <F1> | (A) -> toggle line numbers
|
||||||
" <F2> | (A) -> toggle row/column cursor highlighting
|
" <F2> | (A) -> toggle row/column cursor highlighting
|
||||||
" <F3> | (A) -> toggle line wrapping
|
" <F3> | (A) -> toggle line wrapping
|
||||||
" <F4> | (A) -> toggle all folds
|
" <F4> | (A) -> toggle all folds
|
||||||
" <F5> | (A) -> toggle spell check
|
" <F5> | (A) -> toggle spell check
|
||||||
" <F6> | (A) -> toggle syntax checking
|
" <F6> | (A) -> toggle syntax checking
|
||||||
" <F7> | (A) -> toggle version control differences
|
" <F7> | (A) -> toggle version control differences
|
||||||
" <Ctrl-F7> | (A) -> toggle version control commit history
|
" <Ctrl-F7> | (A) -> toggle version control commit history
|
||||||
" <F8> | (A) -> toggle the tagbar sidebar
|
" <F8> | (A) -> toggle the tagbar sidebar
|
||||||
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
||||||
" <F9> | (A) -> toggle the gundo undo history sidebar
|
" <F9> | (A) -> toggle the gundo undo history sidebar
|
||||||
" <Ctrl-F9> | (A) -> enable spellcheck & toggle list of spelling errors
|
" <Ctrl-F9> | (A) -> enable spellcheck & toggle list of spelling errors
|
||||||
"
|
"
|
||||||
" (gvim toggles)
|
" (gvim toggles)
|
||||||
" <Ctrl-F1> | (A) -> toggle the menu
|
" <Ctrl-F1> | (A) -> toggle the menu
|
||||||
" <Ctrl-F2> | (A) -> toggle the toolbar
|
" <Ctrl-F2> | (A) -> toggle the toolbar
|
||||||
" <Ctrl-F3> | (A) -> toggle the scrollbar
|
" <Ctrl-F3> | (A) -> toggle the scrollbar
|
||||||
"
|
"
|
||||||
" (completion)
|
" (completion)
|
||||||
" <Leader>,, | (A) -> enter after emme 'word' (ie: html:5)
|
" <Leader>,, | (A) -> enter after emme 'word' (ie: html:5)
|
||||||
" \\ | (N) -> show spelling suggestions popup for word
|
" \\ | (N) -> show spelling suggestions popup for word
|
||||||
" \| | (N) -> add word to a local list of correct spellings
|
" \| | (N) -> add word to a local list of correct spellings
|
||||||
" <Tab> | (I) -> (neocomp) autocomplete using common string
|
" <Tab> | (I) -> (neocomp) autocomplete using common string
|
||||||
" <Leader><Tab> | (I) -> (neocomp) autocomplete the common string
|
" <Leader><Tab> | (I) -> (neocomp) autocomplete the common string
|
||||||
" <Enter> | (I) -> (neocomp) close the suggestion popup
|
" <Enter> | (I) -> (neocomp) close the suggestion popup
|
||||||
" <Leader><Backspace> | (I) -> (neocomp) undo the most recent completion
|
" <Leader><Backspace> | (I) -> (neocomp) undo the most recent completion
|
||||||
"
|
"
|
||||||
" (formatting)
|
" (formatting)
|
||||||
" <Backspace> | (V) -> deletes currently selected text
|
" <Backspace> | (V) -> deletes currently selected text
|
||||||
" <Backspace> | (N) -> deletes the character behind the cursor
|
" <Backspace> | (N) -> deletes the character behind the cursor
|
||||||
" <Leader><C-f> | (V) -> format the selection and return to cursor
|
" <Leader><C-f> | (V) -> format the selection and return to cursor
|
||||||
" <Leader><C-f> | (N) -> format document and return to cursor
|
" <Leader><C-f> | (N) -> format document and return to cursor
|
||||||
" <Leader><C-w> | (N) -> remove whitespace
|
" <Leader><C-w> | (N) -> remove whitespace
|
||||||
" <Leader><C-t> | (N) -> convert tabs into spaces
|
" <Leader><C-t> | (N) -> convert tabs into spaces
|
||||||
" <Leader>\ | (N) -> remove search highlighting
|
" <Leader>\ | (N) -> remove search highlighting
|
||||||
" <Leader><Esc> | (N) -> an alt mapping to remove search highlighting
|
" <Leader><Esc> | (N) -> an alt mapping to remove search highlighting
|
||||||
" <Tab> | (V) -> indent all the lines currently selected
|
" <Tab> | (V) -> indent all the lines currently selected
|
||||||
" <Tab> | (N) -> indent the current line
|
" <Tab> | (N) -> indent the current line
|
||||||
" <Shift-Tab> | (V) -> unindent all the lines currently selected
|
" <Shift-Tab> | (V) -> unindent all the lines currently selected
|
||||||
" <Shift-Tab> | (N) -> unindent the current line
|
" <Shift-Tab> | (N) -> unindent the current line
|
||||||
"
|
"
|
||||||
" (movement)
|
" (movement)
|
||||||
" = | (N) -> move to the first character on the next line
|
" = | (N) -> move to the first character on the next line
|
||||||
" <Ctrl-Up> | (N) -> move to the beginning of the document
|
" <Ctrl-Up> | (N) -> move to the beginning of the document
|
||||||
" <Ctrl-Down> | (N) -> move to the end of the document
|
" <Ctrl-Down> | (N) -> move to the end of the document
|
||||||
" <Ctrl-Right> | (N) -> move to the end of the line
|
" <Ctrl-Right> | (N) -> move to the end of the line
|
||||||
" <Ctrl-Left> | (N) -> move to the beginning of the non-whitespace
|
" <Ctrl-Left> | (N) -> move to the beginning of the non-whitespace
|
||||||
"
|
"
|
||||||
" <Shift-Up> | (N) -> move a few lines up
|
" <Shift-Up> | (N) -> move a few lines up
|
||||||
" <Shift-Down> | (N) -> move a few lines down
|
" <Shift-Down> | (N) -> move a few lines down
|
||||||
"
|
"
|
||||||
" <Alt+Up> | (V) -> move a block up one line
|
" <Alt+Up> | (V) -> move a block up one line
|
||||||
" <Alt+Down> | (V) -> move a block down one line
|
" <Alt+Down> | (V) -> move a block down one line
|
||||||
" <Alt+Up> | (N) -> move a line up one line
|
" <Alt+Up> | (N) -> move a line up one line
|
||||||
" <Alt+Down> | (N) -> move a line down one line
|
" <Alt+Down> | (N) -> move a line down one line
|
||||||
"
|
"
|
||||||
" <Alt+Left> | (V) -> move a block up a half page
|
" <Alt+Left> | (V) -> move a block up a half page
|
||||||
" <Alt+Right> | (V) -> move a block down a half page
|
" <Alt+Right> | (V) -> move a block down a half page
|
||||||
" <Alt+Left> | (N) -> move a line up a half page
|
" <Alt+Left> | (N) -> move a line up a half page
|
||||||
" <Alt+Right> | (N) -> move a line down a half page
|
" <Alt+Right> | (N) -> move a line down a half page
|
||||||
" <Alt+h> | (V) -> move a block up a half page
|
" <Alt+h> | (V) -> move a block up a half page
|
||||||
" <Alt+l> | (V) -> move a block down a half page
|
" <Alt+l> | (V) -> move a block down a half page
|
||||||
" <Alt+h> | (N) -> move a line up a half page
|
" <Alt+h> | (N) -> move a line up a half page
|
||||||
" <Alt+l> | (N) -> move a line down a half page
|
" <Alt+l> | (N) -> move a line down a half page
|
||||||
"
|
"
|
||||||
" >> | (N) -> next difference (vimdiff/signify)
|
" >> | (N) -> next difference (vimdiff/signify)
|
||||||
" << | (N) -> previous difference (vimdiff/signify)
|
" << | (N) -> previous difference (vimdiff/signify)
|
||||||
"
|
"
|
||||||
" (selection)
|
" (selection)
|
||||||
" <Ctrl-a> | (N) -> select all text
|
" <Ctrl-a> | (N) -> select all text
|
||||||
" <Leader>a | (N) -> select all text
|
" <Leader>a | (N) -> select all text
|
||||||
" <Ctrl-a> | (V) -> select all text
|
" <Ctrl-a> | (V) -> select all text
|
||||||
" <Leader>a | (V) -> select all text
|
" <Leader>a | (V) -> select all text
|
||||||
"
|
"
|
||||||
" <Ctrl-Up> | (V) -> select all text above
|
" <Ctrl-Up> | (V) -> select all text above
|
||||||
" <Ctrl-Down> | (V) -> select all text below
|
" <Ctrl-Down> | (V) -> select all text below
|
||||||
" <Ctrl-Right> | (V) -> select all text to the right
|
" <Ctrl-Right> | (V) -> select all text to the right
|
||||||
" <Ctrl-Left> | (V) -> select all text to the left up to the indent
|
" <Ctrl-Left> | (V) -> select all text to the left up to the indent
|
||||||
"
|
"
|
||||||
" <Shift-Up> | (V) -> select a few lines up
|
" <Shift-Up> | (V) -> select a few lines up
|
||||||
" <Shift-Down> | (V) -> select a few lines down
|
" <Shift-Down> | (V) -> select a few lines down
|
||||||
" <Shift-Right> | (V) -> select a few lines right
|
" <Shift-Right> | (V) -> select a few lines right
|
||||||
" <Shift-Left> | (V) -> select a few lines left
|
" <Shift-Left> | (V) -> select a few lines left
|
||||||
"
|
"
|
||||||
" (paste functions)
|
" (paste functions)
|
||||||
" <Leader>p | (N) -> view the paste buffers and register contents
|
" <Leader>p | (N) -> view the paste buffers and register contents
|
||||||
" <Leader>p<Direction> | (N) -> paste in the direction entered
|
" <Leader>p<Direction> | (N) -> paste in the direction entered
|
||||||
" y | (N) -> copies the character at the cursor
|
" y | (N) -> copies the character at the cursor
|
||||||
" P | (V) -> save selection to the buffer and paste over
|
" P | (V) -> save selection to the buffer and paste over
|
||||||
" p | (V) -> preserve the buffer pasting over selected text
|
" p | (V) -> preserve the buffer pasting over selected text
|
||||||
"
|
"
|
||||||
" (delete/cut functions)
|
" (delete/cut functions)
|
||||||
" <Leader>d | (V) -> delete the currently selected text
|
" <Leader>d | (V) -> delete the currently selected text
|
||||||
" <Leader>x | (V) -> delete the currently selected text
|
" <Leader>x | (V) -> delete the currently selected text
|
||||||
" <Leader>x | (N) -> delete the char(s) under and the cursor
|
" <Leader>x | (N) -> delete the char(s) under and the cursor
|
||||||
" <Leader>X | (V) -> delete the currently selected lines
|
" <Leader>X | (V) -> delete the currently selected lines
|
||||||
" <Leader>X | (N) -> delete the char(s) before the cursor
|
" <Leader>X | (N) -> delete the char(s) before the cursor
|
||||||
" <Leader>D | (V) -> delete the currently selected lines
|
" <Leader>D | (V) -> delete the currently selected lines
|
||||||
" <Leader>D | (N) -> delete chars under and after the cursor on the line
|
" <Leader>D | (N) -> delete chars under and after the cursor on the line
|
||||||
" <Leader>dw | (N) -> delete chars under and after the cursor in the word
|
" <Leader>dw | (N) -> delete chars under and after the cursor in the word
|
||||||
" <Leader>dd | (N) -> delete lines under and after the one below
|
" <Leader>dd | (N) -> delete lines under and after the one below
|
||||||
"
|
"
|
||||||
" Filetype Specific Mappings:
|
" Filetype Specific Mappings:
|
||||||
" (breeze->html compat)
|
" (breeze->html compat)
|
||||||
" _ | (N) -> move to the next sibling tag
|
" _ | (N) -> move to the next sibling tag
|
||||||
" + | (N) -> move to the previous sibling tag
|
" + | (N) -> move to the previous sibling tag
|
||||||
" <Leader>- | (N) -> move to the first sibling tag
|
" <Leader>- | (N) -> move to the first sibling tag
|
||||||
" <Leader>= | (N) -> move to the last sibling tag
|
" <Leader>= | (N) -> move to the last sibling tag
|
||||||
" <Leader>_ | (N) -> move to the first child tag
|
" <Leader>_ | (N) -> move to the first child tag
|
||||||
" <Leader>+ | (N) -> move to the last child tag
|
" <Leader>+ | (N) -> move to the last child tag
|
||||||
" <Leader><Backspace> | (N) -> move to the parent tag
|
" <Leader><Backspace> | (N) -> move to the parent tag
|
||||||
"
|
"
|
||||||
" (extradite)
|
" (extradite)
|
||||||
" <C-F7> | (A) -> close the dialog
|
" <C-F7> | (A) -> close the dialog
|
||||||
" <Right> | (A) -> same as down
|
" <Right> | (A) -> same as down
|
||||||
" l | (A) -> same as j
|
" l | (A) -> same as j
|
||||||
" <Left> | (A) -> same as Up
|
" <Left> | (A) -> same as Up
|
||||||
" h | (A) -> same as k
|
" h | (A) -> same as k
|
||||||
"
|
"
|
||||||
" (gundo)
|
" (gundo)
|
||||||
" <LeftClick> | (A) -> same as normal + justify on the left
|
" <LeftClick> | (A) -> same as normal + justify on the left
|
||||||
" <MiddleClick> | (A) -> same as the left mouse
|
" <MiddleClick> | (A) -> same as the left mouse
|
||||||
" <RightClick> | (A) -> same as the left mouse
|
" <RightClick> | (A) -> same as the left mouse
|
||||||
" <Right> | (A) -> same as down
|
" <Right> | (A) -> same as down
|
||||||
" l | (A) -> same as j
|
" l | (A) -> same as j
|
||||||
" <Left> | (A) -> same as Up
|
" <Left> | (A) -> same as Up
|
||||||
" h | (A) -> same as k
|
" h | (A) -> same as k
|
||||||
"
|
"
|
||||||
" (help)
|
" (help)
|
||||||
" q | (A) -> close the dialog
|
" q | (A) -> close the dialog
|
||||||
" ?? | (A) -> close the dialog
|
" ?? | (A) -> close the dialog
|
||||||
" ?> | (A) -> close the dialog
|
" ?> | (A) -> close the dialog
|
||||||
" ?< | (A) -> close the dialog
|
" ?< | (A) -> close the dialog
|
||||||
"
|
"
|
||||||
" (markdown)
|
" (markdown)
|
||||||
" <F8> | (A) -> show heading TOC instead of the taglist
|
" <F8> | (A) -> show heading TOC instead of the taglist
|
||||||
"
|
"
|
||||||
" (markdown toc)
|
" (markdown toc)
|
||||||
" <LClick> | (A) -> left click + left justify the cursor
|
" <LClick> | (A) -> left click + left justify the cursor
|
||||||
" <MClick> | (A) -> same as the left click
|
" <MClick> | (A) -> same as the left click
|
||||||
" <RClick> | (A) -> same as the left click
|
" <RClick> | (A) -> same as the left click
|
||||||
" <LClick><LClick> | (A) -> select heading to edit
|
" <LClick><LClick> | (A) -> select heading to edit
|
||||||
" <Space> | (A) -> select heading but remain in toc
|
" <Space> | (A) -> select heading but remain in toc
|
||||||
" <Left> | (A) -> up
|
" <Left> | (A) -> up
|
||||||
" <Right> | (A) -> down
|
" <Right> | (A) -> down
|
||||||
" h | (A) -> j
|
" h | (A) -> j
|
||||||
" l | (A) -> k
|
" l | (A) -> k
|
||||||
"
|
"
|
||||||
" (vimdiff)
|
" (vimdiff)
|
||||||
" <Leader><> | (N) -> update differences
|
" <Leader><> | (N) -> update differences
|
||||||
" <Leader>>< | (N) -> update differences
|
" <Leader>>< | (N) -> update differences
|
||||||
" <Leader>> | (N) -> replace diff in other pane with current pane
|
" <Leader>> | (N) -> replace diff in other pane with current pane
|
||||||
" <Leader<< | (N) -> replace diff in current pane with other pane
|
" <Leader<< | (N) -> replace diff in current pane with other pane
|
||||||
"
|
"
|
||||||
" (vimfiler)
|
" (vimfiler)
|
||||||
" <LClick> | (A) -> left click + left justify the cursor
|
" <LClick> | (A) -> left click + left justify the cursor
|
||||||
" <MClick> | (A) -> same as the left click
|
" <MClick> | (A) -> same as the left click
|
||||||
" <RClick> | (A) -> same as the left click
|
" <RClick> | (A) -> same as the left click
|
||||||
" <LClick><LClick> | (A) -> edit selected file
|
" <LClick><LClick> | (A) -> edit selected file
|
||||||
" <Right> | (A) -> map to l, which opens a directory
|
" <Right> | (A) -> map to l, which opens a directory
|
||||||
" <Left> | (A) -> map to h, which goes up one directory
|
" <Left> | (A) -> map to h, which goes up one directory
|
||||||
" ' | (A) -> edit the selected file
|
" ' | (A) -> edit the selected file
|
||||||
" n | (A) -> start editing a new file
|
" n | (A) -> start editing a new file
|
||||||
"
|
"
|
||||||
|
|
||||||
"ALIASES: COMMAND SHORTCUTS {{{
|
"ALIASES: COMMAND SHORTCUTS {{{
|
||||||
|
@ -251,10 +248,9 @@
|
||||||
|
|
||||||
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
||||||
"MOUSE:{
|
"MOUSE:{
|
||||||
"midle click enters input mode
|
"configure middle click to paste from X
|
||||||
nnoremap <MiddleMouse> <RightMouse>
|
noremap <S-Insert> <MiddleMouse>
|
||||||
nnoremap <A-MiddleMouse> <LeftMouse>i
|
noremap! <S-Insert> <MiddleMouse>
|
||||||
nnoremap <C-MiddleMouse> <LeftMouse>p
|
|
||||||
|
|
||||||
"hold ctrl to scroll left/right instead of up/down
|
"hold ctrl to scroll left/right instead of up/down
|
||||||
noremap <C-ScrollWheelUp> 4zl
|
noremap <C-ScrollWheelUp> 4zl
|
||||||
|
@ -268,14 +264,47 @@
|
||||||
inoremap <A-ScrollWheelUp> <C-O>zl
|
inoremap <A-ScrollWheelUp> <C-O>zl
|
||||||
inoremap <A-ScrollWheelDown> <C-O>zh
|
inoremap <A-ScrollWheelDown> <C-O>zh
|
||||||
|
|
||||||
"hold ctrl while clicking to select the current line
|
"middle click behaves like right and selects from cursor
|
||||||
nnoremap <C-LeftMouse> <LeftMouse>V
|
noremap <MiddleMouse> <RightMouse>
|
||||||
inoremap <C-LeftMouse> <Esc><LeftMouse>V
|
|
||||||
|
|
||||||
"hold alt while clicking to select the current paragraph
|
"ctrl+middle/right = copy line in normal and selection in visual
|
||||||
nnoremap <A-LeftMouse> <LeftMouse>vip
|
nnoremap <C-RightMouse> <LeftMouse>Vy
|
||||||
xnoremap <A-LeftMouse> <Esc><LeftMouse>vip
|
nnoremap <C-MiddleMouse> <LeftMouse>Vy
|
||||||
inoremap <A-LeftMouse> <LeftMouse>vip
|
vnoremap <C-RightMouse> y
|
||||||
|
vnoremap <C-MiddleMouse> y
|
||||||
|
inoremap <C-RightMouse> <Esc>p
|
||||||
|
inoremap <C-MiddleMouse> <Esc>p
|
||||||
|
|
||||||
|
"ctrl+alt+middle/right = paste
|
||||||
|
nnoremap <A-RightMouse> x
|
||||||
|
nnoremap <A-MiddleMouse> x
|
||||||
|
xnoremap <A-RightMouse> x
|
||||||
|
xnoremap <A-MiddleMouse> x
|
||||||
|
inoremap <A-RightMouse> <C-O>x
|
||||||
|
inoremap <A-MiddleMouse> <C-O>x
|
||||||
|
|
||||||
|
"ctrl+alt+middle/right = paste
|
||||||
|
nnoremap <C-A-RightMouse> p
|
||||||
|
nnoremap <C-A-MiddleMouse> p
|
||||||
|
xnoremap <C-A-RightMouse> p
|
||||||
|
xnoremap <C-A-MiddleMouse> p
|
||||||
|
inoremap <C-A-RightMouse> <C-O>p
|
||||||
|
inoremap <C-A-MiddleMouse> <C-O>p
|
||||||
|
|
||||||
|
"ctrl+left = word
|
||||||
|
nnoremap <C-LeftMouse> <LeftMouse>bvw
|
||||||
|
xnoremap <C-LeftMouse> <Esc><LeftMouse>bvw
|
||||||
|
inoremap <C-LeftMouse> <Esc><LeftMouse>bvw
|
||||||
|
|
||||||
|
"alt+left = line
|
||||||
|
nnoremap <A-LeftMouse> <LeftMouse>V
|
||||||
|
xnoremap <A-LeftMouse> <Esc><LeftMouse>V
|
||||||
|
inoremap <A-LeftMouse> <Esc><LeftMouse>V
|
||||||
|
|
||||||
|
"ctrl-alt+left = paragraph
|
||||||
|
nnoremap <C-A-LeftMouse> <LeftMouse>vip
|
||||||
|
xnoremap <C-A-LeftMouse> <Esc><LeftMouse>vip
|
||||||
|
inoremap <C-A-LeftMouse> <Esc><LeftMouse>vip
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"TABS:{
|
"TABS:{
|
||||||
|
|
|
@ -87,9 +87,9 @@
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"SYNTASTIC: {{{
|
"SYNTASTIC: {{{
|
||||||
"autostart syntax checking when vim opens to a compatible filetype (default: 1)
|
"autostart syntax checking when vim opens to a compatible filetype (default: 0)
|
||||||
if !exists("g:autostartchecker")
|
if !exists("g:autostartchecker")
|
||||||
let g:autostartchecker=1
|
let g:autostartchecker=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if &diff
|
if &diff
|
||||||
|
|
2
vimrc
2
vimrc
|
@ -33,7 +33,7 @@
|
||||||
let g:autostartfiler=1
|
let g:autostartfiler=1
|
||||||
|
|
||||||
"Syntax Checking Autostart: (1:start toggled on | 0: start toggled off)
|
"Syntax Checking Autostart: (1:start toggled on | 0: start toggled off)
|
||||||
let g:autostartchecker=1
|
let g:autostartchecker=0
|
||||||
|
|
||||||
"Vim Starts With The Tagbar Open: (1:start open | 0:start closed)
|
"Vim Starts With The Tagbar Open: (1:start open | 0:start closed)
|
||||||
let g:autostarttagbar=0
|
let g:autostarttagbar=0
|
||||||
|
|
Loading…
Reference in a new issue