summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-05-21 18:26:18 +0200
committermakefu <github@syntax-fehler.de>2014-05-21 18:26:18 +0200
commit720176d791425eacb777979a5041f63ade48eae5 (patch)
treef9972b0347f23297183c9811efc5427106a1fd0b /content
parentb58fa13180981afce4f17b4d59b739d79a5873f5 (diff)
add theme
Diffstat (limited to 'content')
-rw-r--r--content/posts/a-usable-vim-undo-tree.rst35
-rw-r--r--content/posts/wps-and-openwrt.rst10
2 files changed, 39 insertions, 6 deletions
diff --git a/content/posts/a-usable-vim-undo-tree.rst b/content/posts/a-usable-vim-undo-tree.rst
new file mode 100644
index 0000000..931f30d
--- /dev/null
+++ b/content/posts/a-usable-vim-undo-tree.rst
@@ -0,0 +1,35 @@
+A usable VIM Undo tree
+##################################
+:date: 2014-04-15 14:20
+:tags: vim, undo
+
+
+As some may have heard, vim stores your actions (and undos) as a tree, which is
+great. With vim 7.3 there is even a option to persist these changes between
+session. But with vanilla vim this tree is pretty much unusable.
+
+A friend showed me a great plugin which gives vim git-like super powers by
+showing undos in a tree, together with a patch view with the `gundo plugin <https://github.com/sjl/gundo.vim>`_.
+
+This plugin, together with persistent undo files feels almost like when i have used ctrl-r for the shell the first time!
+
+Configuration
+-------------
+
+Grab vundle for VIM, `install it
+<https://github.com/gmarik/Vundle.vim>`_.
+
+Add these lines to your vimrc:
+
+.. code-block:: vim
+
+ Bundle 'sjl/gundo.vim'
+ nnoremap <F5> :GundoToggle<CR>
+ set undodir=~/.vim/undo
+ set undofile
+ "maximum number of changes that can be undone
+ set undolevels=1000000
+ "maximum number lines to save for undo on a buffer reload
+ set undoreload=10000000
+
+In vim run **:BundleInstall** , you can now toggle the undo bar with **<F5>**.
diff --git a/content/posts/wps-and-openwrt.rst b/content/posts/wps-and-openwrt.rst
index 21815bc..429b510 100644
--- a/content/posts/wps-and-openwrt.rst
+++ b/content/posts/wps-and-openwrt.rst
@@ -3,7 +3,7 @@ WPS and OpenWRT
:date: 2014-04-09 22:40
:tags: wps, openwrt
-When hearing WPS_ i always think of the worst idea in network security. *'Hey,
+When hearing WPS(Wifi Protected Setup) i always think of the worst idea in network security. *'Hey,
how about changing a long key with a minimum length of 8 characters to
something like... 4 numbers! And with that number you get the original
password! GENIUS'* . But WPS consists of more than this shitty idea. It also
@@ -12,7 +12,7 @@ button'[#]_. That is why quite a lot of current routers have the WPS-Button to
easily connect such devices (namely wifi printers and scanners).
It **just works** with stock firmware but of course i am running a
-Frickelsystem_ on my TP-Link router. On OpenWRT it *might* work out of the box
+Frickelsystem [#]_ on my TP-Link router. On OpenWRT [#]_ it *might* work out of the box
with the latest and greatest unstable release but in my case i
needed to replace some packages to make it work.
@@ -36,7 +36,5 @@ The WPS button on your router should now also be working if the stars are
alligned correctly.
.. [#] http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup#Methods
-.. _WPS: Wifi Protected Setup
-.. _Frickelsystem: Systems not made for end-users. see Openwrt
-.. _Openwrt: Alternative router firmware without the official router vendor
- backdoors (safety not guaranteed). Also the mother of all Frickelsystemen
+.. [#] Systems not made for end-users. see Openwrt
+.. [#] Alternative router firmware without the official router vendor backdoors (safety not guaranteed). Also the mother of all Frickelsystemen