Commit graph

607 commits

Author SHA1 Message Date
b9f51cd5b4 Improved autoclose + new mappings
* Autoclose now does pairs of the same character, like "" or ``
* New mappings for surrounding visual selection with opening/closing pairs
2017-11-13 16:00:55 +01:00
4a022485c9 Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2017-11-13 08:06:02 +01:00
ac0946208e Improved Lua stuff 2017-11-12 19:55:15 +01:00
5587521b7f Fixed autoclose 2017-11-10 13:43:23 +01:00
73005287e0 Removed guifont setting for good 2017-11-08 08:13:35 +01:00
5d8f195aee Lua auto-closing and setting local WD 2017-11-07 16:58:55 +01:00
511207ae3b Added number increment/decrement bindings 2017-11-07 16:55:22 +01:00
4387105882 Auto-close now detects closing tag on next line 2017-11-07 15:41:36 +01:00
5b8f2255cc Added auto-closing feature
* Auto-close pairs can be registered with a function call
* Typing an "opening" character automatically inserts the matching closing character.
* Typing <enter> between an opening and a closing character inserts two new lines. Autoindent should take care of indentation.
2017-11-07 15:28:10 +01:00
1e334ac9cb Set up gvimrc to be more portable
* gvimrc can now work with locally installed color schemes
* This requires extending the g:colors list after sourcing it
* Also removed old commented block that would never be used again anyway
2017-11-07 11:28:31 +01:00
a59faeb51b Formatting 2017-11-06 16:31:27 +01:00
2d7bb18228 For real this time™ 2017-11-06 13:18:40 +01:00
153a21354d Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2017-11-06 11:29:47 +01:00
694e3af8f2 Re-enabled swap files\n\nLet's see how this works out and whether I have to change it back or not. 2017-11-06 11:29:05 +01:00
5329a42c56 Default encryption should be blowfish if possible 2017-11-06 10:07:53 +01:00
b83b516445 Some movement commands 2017-11-06 10:00:07 +01:00
e909c0bb41 Merge branch 'master' of github.com:DarkWiiPlayer/darkrc 2017-11-04 13:16:33 +01:00
c42768776f Added HTML template extensions 2017-11-04 13:16:10 +01:00
d14a968497 Added Vi mode to bashrc 2017-11-04 10:19:44 +01:00
0a1cd0f87a Removed ruby autoindenting and <C-s> saving
* Disabled <C-s> saving
* Removetrailing spaces now restores last searched pattern
* Removed ruby autoindenting
2017-11-03 08:09:12 +01:00
c34d46cd2f Minor improvements + ]p and [p
* Improved visual selection
* Improved standard ]p and [p
* Fixed ruby autoindentation
2017-11-01 12:43:42 +01:00
18335cc569 Streamlined ruby autoretabbing 2017-11-01 06:54:16 +01:00
ebf84e7d34 Clipboard fix + Search selection + Search cword fix
* Now use the correct clipboard register depending on whether unnamedplus is available
* Added word boundaries to replace cword function from normal mode
* Added replace selection mapping in visual mode
* Copied VisualSelection() function from stack overflow (source link in code)
2017-10-31 13:52:03 +01:00
f627f0ca1a Inserted easy search-and-replace
Shift+R enters command mode and puts :%s/<cword>/ in the command line (TODO: Visual mode support)
2017-10-31 09:12:02 +01:00
1de53904d9 Merge branch 'master' of github.com:DarkWiiPlayer/darkrc
Conflicts:
	vimrc
2017-10-30 16:56:35 +01:00
becf1b1e60 Added Lua stuff 2017-10-30 16:52:24 +01:00
30a6db56ee Added HTML stuff
* Improved ruby find commands to not include keywords like "def" and "class"
* Saving now jumps back to last position after undoing retab in ruby files
* Added HTML block
* Added HTML mappings to expand word under cursor to opening and closing tag
2017-10-30 15:50:14 +01:00
f90c93a19b Several quickfix and location list related things
* Moved general utilities block
* Added MatchingLinesDict function
	Works like MatchingLines, but returns a dictionary compatible with setqflist() and setloclist()
* Added [Q|L]add[line|cursor] commands
* Added LFind and QFind commands
2017-10-30 13:01:10 +01:00
d4a429dfda Two minor improvements 2017-10-26 16:32:00 +02:00
0cb716e650 2 new commands (Todo & Fixme) + mapping fixes 2017-10-26 13:24:02 +02:00
3eea5c99c9 Duplicated window height stuff for window width 2017-10-26 13:08:27 +02:00
cba78ca0eb Moved file-specific stuff do functions 2017-10-26 12:39:08 +02:00
f542d8987f Lots of Improvements! :)
Moved some navigation-related stuff together.
Added `Matchinglines(pattern)` function that returns a list of lines where
`pattern` is found in a format understood by `lex` and `cex` commands.
Added three new ruby commands that find method, class and module
definitions in a file and ad them to the location list.
2017-10-26 11:10:43 +02:00
e328b6724f Added some window height things
FIX: SetWinMinHeight no longer crashes when argument < 0
  FIX: <leader>- no longer crashes when already at winminheight=0
ADD: New command Equal makes all windows equally big (and sets
minwinheight to 0 in the process, use <leader>- to reset them)
2017-10-26 08:49:54 +02:00
399fdda6a3 Undofile + comments
Removed / changed some comments
Changed the path of the undo-file to not be 100% specific to my
workspace setup
2017-10-24 11:46:48 +02:00
5934af1833 Minor changes + session options 2017-10-24 11:39:53 +02:00
fa2ec57364 Fixed a few things with normal mode newline 2017-10-24 09:40:54 +02:00
8edad2f43d New-line function now clears new line
This is only relevant when vim auto-generates some text for the new
line, for example then continuing multiple line comments.
2017-10-23 14:28:12 +02:00
8d5389a879 Custon HL group for word under cursor
The variable b:word_hl can now be set to set a custom highlighting group
for the word-under-cursor functionality.
2017-10-20 12:39:20 +02:00
98e757172b Commented out a debugging output
I kinda forgot to remove that in the previous
commit tehe~
2017-10-20 09:57:34 +02:00
cf9ffa6148 Improved word-under-cursor matching to *only* match whole words 2017-10-20 09:54:52 +02:00
812e00aa3b Mostly improved the normal-enter functionality 2017-10-20 09:45:49 +02:00
af04763824 Added insert before WORD and append after WORD mapping 2017-10-19 08:41:26 +02:00
eb9f1a06c9 Some minor changes :) 2017-10-18 19:15:31 +02:00
d6647b86e0 moved some color-related stuff to gvimrc file 2017-10-18 18:58:06 +02:00
01b1a199a3 Greatly changed .vimrc file 2017-10-18 18:50:13 +02:00
b926f92e76 added duplicate current line mapping on <C-d> 2017-10-05 19:07:22 +02:00
a789c0f15e fixed some my own stupid mistake while merging :/ 2017-10-05 19:06:37 +02:00
5e367a8732 Merge branch 'master' of github.com:DarkWiiPlayer/darkrc
Conflicts:
	vimrc
2017-10-05 19:02:20 +02:00
f875ca63b4 Some minor fixes in the vimrc file 2017-10-05 19:00:48 +02:00