Commit Graph

200 Commits

Author SHA1 Message Date
Talia 2735e3ab59 Make file_at_revision() preserve cursor position
note that this may still change the cursor position due to deletions
and insertions further up in the file, but now the cursor should at
least end up somewhere near its original position for smaller commits.
2018-04-12 08:40:52 +02:00
Talia 04eb8d6828 Add git history commands
- GitFirst check out first revision of the file into new buffer
- GitLast same but last revision
- GitNext jump to the next revision of a file
- GitPrevious same but previous
  Only commits that modified the file are considered
- GitInfo shows commit information about the current revision
2018-04-12 08:40:48 +02:00
Talia 02f2747c9e Add leader+n, leader+p to move in arglist
leader+n moves to the [N]ext buffer in the arg list
leader+p moves to the [P]revious buffer in the arg list
as simple as that ;)
2018-04-12 08:40:46 +02:00
Talia c61240c532 Make Hex command more robust
Hex command now infers more meaning from context.
2018-04-12 08:40:17 +02:00
Talia 2c6b686107 did stuff 2018-03-15 16:30:57 +01:00
Talia d4b5eaedf0 Added ruby "Members" and renamed "Defines"
- "Defines "is now called "Methods" (which was previously just an alias)
- There is no alias for "Defines"
- Members simply shows all the keywords starting with @ in the file
2018-03-13 09:55:01 +01:00
Talia 3679c04e54 Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2018-03-12 16:38:52 +01:00
Talia 3d427643bb Further improved visual-execute
- Now also works in insert mode with <C-Space> (only current line)
- Made vim.column more robust and added col alias
2018-03-12 09:30:49 +01:00
Talia b4f29b49f9 Fixed visual-execute for linux 2018-03-09 14:57:04 +01:00
Talia d36e470044 Fixed Mooncompile Command 2018-03-09 14:11:26 +01:00
Talia 37bdfddcd7 Lua + Improved visual-exec = ♥
changes ─┐
         ├─ Added a folder for lua / moonscript
         ├─┬─ VISUAL-EXEC BINDINGS
         │ ├─ Visual-Enter now tries running as moonscript
         │ └─ Visual-C-Enter tries running as vim command
         ├─ Added Mooncompile command (compiles moonscript in lua folder)
         ├─ Added vim.moon which does nice things :)
         └─┬─ VIM.MOON
           ├─ tree: builds a tree like this one
           ├─ clumn: draws a table-column (useful for class diagrams)
           └─ draw: prints some drawing symbols
2018-03-09 13:54:37 +01:00
Talia f4d8aae4b1 Set default fold method to marker 2018-03-09 11:56:15 +01:00
Talia e5c7c9909d visual-execute works differently now
- Ctrl+Enter -> execute g:exe_prg
- Enter -> execute b:exe_prg
- b:exe_prg is initialized to g:exe_prg by default
2018-03-07 12:52:24 +01:00
Talia c17d5895e6 Added visual-execute
- (visual)Enter to run the selected text as a vim command
- (visual)C+Enter to run the selected text with g:exe_prg
- g:exe_prg should be defined in a local vimrc
2018-03-07 12:44:04 +01:00
Talia 05c6716944 Fixed + improved autosave stuff 2018-02-20 14:17:02 +01:00
Talia 05579eaa8c Improved Autosave 2018-02-15 09:08:13 +01:00
Talia f66850906b Added Uncommitted feature
- Shows uncommitted changes in the current file, including unsaved ones
2018-02-09 14:31:44 +01:00
Talia 3f107275e1 Fixed indentation from mixed to tabs 2018-02-09 08:37:48 +01:00
Talia 171b571938 Made Ctrl-s even more annoying ;) 2018-02-09 08:35:33 +01:00
Talia 434be3251f General Improvements 2018-02-09 08:31:25 +01:00
Talia 2505b7abef Merged in remote changes from github 2018-02-01 09:05:51 +01:00
Talia e016daaf29 Improved autosave + added save prompt
- Auto-save now triggers when nothing is typed for a while
- Pressing C+s now asks the user to type "save"
2018-02-01 09:02:38 +01:00
Talia 2e61676106 Fixed Scratch command 2018-01-31 16:53:24 +01:00
Talia 50e9538394 Added scratch command 2018-01-31 16:29:22 +01:00
Talia 62e5b316de fixed cryptmethod choice 2018-01-31 08:17:19 +01:00
Talia a041c4deb7 tiny fix for unsaved command 2018-01-30 22:15:34 +01:00
Talia 855b52e578 Fixed snapshot 2018-01-30 19:25:08 +01:00
Talia 00a5a359c6 improved enter in normal mode 2018-01-30 19:22:35 +01:00
Talia 2468075090 Added 'snapshot' command 2018-01-30 19:21:50 +01:00
Talia d92a7c0bfb fixed enter in normal mode when nomodifiable 2018-01-30 19:12:36 +01:00
Talia 3e28a6b265 Improved unsaved command 2018-01-30 19:12:00 +01:00
Talia d88106da00 Fixed enter in normal mode 2018-01-30 19:04:09 +01:00
Talia 93b5927968 Improved unsaved 2018-01-30 16:38:39 +01:00
Talia 20aa8c1916 Unsaved and Hex commands 2018-01-30 10:47:42 +01:00
Talia c169c1e2fd slightly improved autosave 2018-01-15 19:43:18 +01:00
Talia 21a466fbd4 Removed ruby expandtab stuff 2018-01-08 10:50:30 +01:00
Talia 5ad0ba7fa9 Added `setl number` to most file types 2018-01-03 14:20:23 +01:00
Talia 20ff99ad55 removed relativenumber 2018-01-03 14:17:55 +01:00
Talia 91c31e88ca Enable Blowfish 2 when available 2017-12-19 16:24:58 +01:00
Talia 558a474a8f Added double space inside auto-close pairs 2017-12-19 15:57:18 +01:00
Talia 33cdbc0995 Moved cursorline option to gvimrc 2017-12-19 15:46:02 +01:00
Talia 70be955b0a Small Improvement 2017-12-18 11:02:12 +01:00
Talia 1b828ace39 Did Stuff 2017-11-16 16:34:43 +01:00
Talia bbf97daec6 Mostly window width/height stuff
* Default is now equal distribution, as I was using windows for what
tabs are usually for.
* Vim 8.0 indentation features are now used when available
2017-11-16 14:09:18 +01:00
Talia 28709c0cf9 Switched <leader>[ and <leader>] 2017-11-16 11:19:42 +01:00
Talia ece9647757 Removed <C-q> because accidents happen 2017-11-13 18:34:19 +01:00
Talia 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
Talia 4a022485c9 Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2017-11-13 08:06:02 +01:00
Talia ac0946208e Improved Lua stuff 2017-11-12 19:55:15 +01:00
Talia 5587521b7f Fixed autoclose 2017-11-10 13:43:23 +01:00
Talia 73005287e0 Removed guifont setting for good 2017-11-08 08:13:35 +01:00
Talia 5d8f195aee Lua auto-closing and setting local WD 2017-11-07 16:58:55 +01:00
Talia 511207ae3b Added number increment/decrement bindings 2017-11-07 16:55:22 +01:00
Talia 4387105882 Auto-close now detects closing tag on next line 2017-11-07 15:41:36 +01:00
Talia 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
Talia a59faeb51b Formatting 2017-11-06 16:31:27 +01:00
Talia 2d7bb18228 For real this time™ 2017-11-06 13:18:40 +01:00
Talia 153a21354d Merge branch 'master' of https://github.com/DarkWiiPlayer/darkrc 2017-11-06 11:29:47 +01:00
Talia 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
Talia 5329a42c56 Default encryption should be blowfish if possible 2017-11-06 10:07:53 +01:00
Talia b83b516445 Some movement commands 2017-11-06 10:00:07 +01:00
Talia c42768776f Added HTML template extensions 2017-11-04 13:16:10 +01:00
Talia 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
Talia 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
Talia 18335cc569 Streamlined ruby autoretabbing 2017-11-01 06:54:16 +01:00
Talia 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
Talia 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
Talia 1de53904d9 Merge branch 'master' of github.com:DarkWiiPlayer/darkrc
Conflicts:
	vimrc
2017-10-30 16:56:35 +01:00
Talia becf1b1e60 Added Lua stuff 2017-10-30 16:52:24 +01:00
Talia 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
Talia 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
Talia d4a429dfda Two minor improvements 2017-10-26 16:32:00 +02:00
Talia 0cb716e650 2 new commands (Todo & Fixme) + mapping fixes 2017-10-26 13:24:02 +02:00
Talia 3eea5c99c9 Duplicated window height stuff for window width 2017-10-26 13:08:27 +02:00
Talia cba78ca0eb Moved file-specific stuff do functions 2017-10-26 12:39:08 +02:00
Talia 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
Talia 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
Talia 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
Talia 5934af1833 Minor changes + session options 2017-10-24 11:39:53 +02:00
Talia fa2ec57364 Fixed a few things with normal mode newline 2017-10-24 09:40:54 +02:00
Talia 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
Talia 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
Talia 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
Talia cf9ffa6148 Improved word-under-cursor matching to *only* match whole words 2017-10-20 09:54:52 +02:00
Talia 812e00aa3b Mostly improved the normal-enter functionality 2017-10-20 09:45:49 +02:00
Talia af04763824 Added insert before WORD and append after WORD mapping 2017-10-19 08:41:26 +02:00
Talia eb9f1a06c9 Some minor changes :) 2017-10-18 19:15:31 +02:00
Talia d6647b86e0 moved some color-related stuff to gvimrc file 2017-10-18 18:58:06 +02:00
Talia 01b1a199a3 Greatly changed .vimrc file 2017-10-18 18:50:13 +02:00
Talia b926f92e76 added duplicate current line mapping on <C-d> 2017-10-05 19:07:22 +02:00
Talia a789c0f15e fixed some my own stupid mistake while merging :/ 2017-10-05 19:06:37 +02:00
Talia 5e367a8732 Merge branch 'master' of github.com:DarkWiiPlayer/darkrc
Conflicts:
	vimrc
2017-10-05 19:02:20 +02:00
Talia f875ca63b4 Some minor fixes in the vimrc file 2017-10-05 19:00:48 +02:00
Talia 621eebbe99 Added leader character and one shortcut 2017-09-06 08:50:34 +02:00
Talia 0c715d79f0 Made some improvements to .vimrc 2017-09-01 13:19:15 +02:00
Talia 39a0932b95 Added line numbers + <F3> to toggle them locally 2017-08-19 11:35:28 +02:00
Talia 16e111489e This doesn't work well on the server, thus I am removing it 2017-08-19 09:06:55 +02:00
Talia 85b22787ba Changed the shortcut for retab because terminal
New shortcut:
  <Shift-Tab> retab
  <Shift-Tab>x2 change tab mode
2017-08-19 09:02:59 +02:00
Talia 380ce2d794 forgot to add the retab stuff I had forgotten :P 2017-08-19 08:51:33 +02:00
Talia 5aaa281614 Added .vimrc and .bashrc configs to the repo 2017-08-19 08:48:08 +02:00